We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ad3e99 commit e907f42Copy full SHA for e907f42
nanoFirmwareFlasher.Library/Utilities.cs
@@ -16,7 +16,7 @@ internal class Utilities
16
static Utilities()
17
{
18
// need this to be able to use ProcessStart at the location where the .NET Core CLI tool is running from
19
- string codeBase = Assembly.GetExecutingAssembly().Location;
+ string codeBase = System.AppContext.BaseDirectory;
20
string fullPath = Path.GetFullPath(codeBase);
21
ExecutingPath = Path.GetDirectoryName(fullPath);
22
}
0 commit comments