From 2c5f13947fbe64b437e4f18bb7e79b9a5f795c58 Mon Sep 17 00:00:00 2001 From: Yuuki-Walsh Date: Wed, 21 Apr 2021 19:19:15 +1000 Subject: [PATCH] Update App.xaml.cs --- Anamnesis/App.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Anamnesis/App.xaml.cs b/Anamnesis/App.xaml.cs index fc58a0f0c..542f8e488 100644 --- a/Anamnesis/App.xaml.cs +++ b/Anamnesis/App.xaml.cs @@ -117,7 +117,7 @@ private void CheckWorkingDirectory() if (!File.Exists(currentDir + "/Anamnesis.exe")) { - string? currentPath = Assembly.GetEntryAssembly()?.Location; + string? currentPath = AppContext.BaseDirectory; if (string.IsNullOrEmpty(currentPath)) throw new Exception($"Failed to get current path");