Skip to content

Commit e907f42

Browse files
authored
Change the way of getting base directory (#311)
***NO_CI***
1 parent 5ad3e99 commit e907f42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nanoFirmwareFlasher.Library/Utilities.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ internal class Utilities
1616
static Utilities()
1717
{
1818
// 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;
19+
string codeBase = System.AppContext.BaseDirectory;
2020
string fullPath = Path.GetFullPath(codeBase);
2121
ExecutingPath = Path.GetDirectoryName(fullPath);
2222
}

0 commit comments

Comments
 (0)