last fix to ensure loading correct settings file

This commit is contained in:
Kaim, Sean M
2016-05-02 23:54:25 -04:00
parent 403983ac6b
commit 8196e61a2c

View File

@@ -8,7 +8,7 @@ namespace mRemoteNG.App.Info
public class SettingsFileInfo
{
public static readonly string exe = Assembly.GetExecutingAssembly().GetName().CodeBase;
public static readonly string exePath = Path.GetDirectoryName(new Uri(Assembly.GetExecutingAssembly().GetName().CodeBase).AbsolutePath);
public static readonly string exePath = Path.GetDirectoryName(new Uri(Assembly.GetExecutingAssembly().GetName().CodeBase).LocalPath);
#if !PORTABLE
public static readonly string SettingsPath = System.Environment.GetFolderPath(System.Environment.SpecialFolder.ApplicationData) + "\\" + Application.ProductName;
#else