Merge branch 'release/FixAppDir'

This commit is contained in:
Samuele Locatelli
2022-10-19 15:45:45 +02:00
+6 -1
View File
@@ -4683,8 +4683,12 @@ namespace IOB_WIN_NEXT
}
// test directory...
string basePath = Application.StartupPath;
/* TEST DIRECTORY
// questa prende dir = IOB-MAN
string basePath = Directory.GetCurrentDirectory();
string appStart = Application.StartupPath;
// alternative OK
string exePath = Path.GetDirectoryName(new Uri(Assembly.GetExecutingAssembly().CodeBase).LocalPath);
string sacBaseDir = System.AppContext.BaseDirectory;
lgInfo("--------- DIR TEST -------------");
@@ -4693,6 +4697,7 @@ namespace IOB_WIN_NEXT
lgInfo($"exePath: {exePath}");
lgInfo($"sacBaseDir: {sacBaseDir}");
lgInfo("----------------------");
*/
string localPath = Path.Combine(basePath, locDir);
lgInfo($"basePath: {basePath} | localPath: {localPath}");