Skip to content

Commit

Permalink
fix:warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
yukieiji committed Mar 23, 2024
1 parent b884722 commit c620bef
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Loader/Standalone/ExplorerStandalone.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,13 @@ protected virtual void CheckExplorerFolder()
{
if (explorerFolderDest == null)
{
string assemblyLocation = Uri.UnescapeDataString(new Uri(typeof(ExplorerCore).Assembly.CodeBase).AbsolutePath);
string location =
#if NET6_0
typeof(ExplorerCore).Assembly.Location;
#else
typeof(ExplorerCore).Assembly.CodeBase;
#endif
string assemblyLocation = Uri.UnescapeDataString(new Uri(location).AbsolutePath);
explorerFolderDest = Path.GetDirectoryName(assemblyLocation);
}
}
Expand Down

0 comments on commit c620bef

Please sign in to comment.