Skip to content

Commit

Permalink
fix: Failure to run from the top-level path
Browse files Browse the repository at this point in the history
  • Loading branch information
Laeng committed Jun 15, 2024
1 parent ceec008 commit 93e0f42
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion SCTools/SCTool_Redesigned/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions SCTools/SCTool_Redesigned/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]

0 comments on commit 93e0f42

Please sign in to comment.