diff --git a/nanoFirmwareFlasher.Library/Utilities.cs b/nanoFirmwareFlasher.Library/Utilities.cs index 0bf9734e..7372cad7 100644 --- a/nanoFirmwareFlasher.Library/Utilities.cs +++ b/nanoFirmwareFlasher.Library/Utilities.cs @@ -16,7 +16,7 @@ internal class Utilities static Utilities() { // need this to be able to use ProcessStart at the location where the .NET Core CLI tool is running from - string codeBase = Assembly.GetExecutingAssembly().Location; + string codeBase = System.AppContext.BaseDirectory; string fullPath = Path.GetFullPath(codeBase); ExecutingPath = Path.GetDirectoryName(fullPath); }