diff --git a/Util/FileUtils.cs b/Util/FileUtils.cs --- a/Util/FileUtils.cs +++ b/Util/FileUtils.cs @@ -23,9 +23,11 @@ namespace DesertPaintCodex.Util { string resultPath; - string? appPath = - System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location); + // string? appPath = + // System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location); + string? appPath = System.IO.Path.GetDirectoryName(AppContext.BaseDirectory); + if (appPath != null) { resultPath = System.IO.Path.Combine(appPath, path);