From 93e0f42815568bdc4509ed63094f6f831ad02a9c Mon Sep 17 00:00:00 2001 From: Laeng Date: Sat, 15 Jun 2024 20:01:55 +0900 Subject: [PATCH] fix: Failure to run from the top-level path --- SCTools/SCTool_Redesigned/App.xaml.cs | 2 +- SCTools/SCTool_Redesigned/Properties/AssemblyInfo.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/SCTools/SCTool_Redesigned/App.xaml.cs b/SCTools/SCTool_Redesigned/App.xaml.cs index 052b559..1aa67dc 100644 --- a/SCTools/SCTool_Redesigned/App.xaml.cs +++ b/SCTools/SCTool_Redesigned/App.xaml.cs @@ -141,7 +141,7 @@ public static void Close() private static string GetExecutableDir() { - var location = new Uri(AppContext.BaseDirectory); + var location = new Uri(Process.GetCurrentProcess().MainModule.FileName); var dirInfo = new FileInfo(location.LocalPath).Directory; if (dirInfo == null) diff --git a/SCTools/SCTool_Redesigned/Properties/AssemblyInfo.cs b/SCTools/SCTool_Redesigned/Properties/AssemblyInfo.cs index 619aff6..3023ee7 100644 --- a/SCTools/SCTool_Redesigned/Properties/AssemblyInfo.cs +++ b/SCTools/SCTool_Redesigned/Properties/AssemblyInfo.cs @@ -51,5 +51,5 @@ // 모든 값을 지정하거나 아래와 같이 '*'를 사용하여 빌드 번호 및 수정 번호를 // 기본값으로 할 수 있습니다. // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.3.4.1")] -[assembly: AssemblyFileVersion("1.3.4.1")] +[assembly: AssemblyVersion("1.3.4.2")] +[assembly: AssemblyFileVersion("1.3.4.2")]