From 7125b5a5bb0d6f58ebc9c569f7dce0d0bf6ecbaf Mon Sep 17 00:00:00 2001 From: "Valeriano A.R" Date: Wed, 7 Jul 2021 21:53:03 +0200 Subject: [PATCH] Use current directory as initial directory for persistence --- VAR.WebFormsCore/Code/MultiLang.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/VAR.WebFormsCore/Code/MultiLang.cs b/VAR.WebFormsCore/Code/MultiLang.cs index aefb084..030a91c 100644 --- a/VAR.WebFormsCore/Code/MultiLang.cs +++ b/VAR.WebFormsCore/Code/MultiLang.cs @@ -1,6 +1,6 @@ -using System.Collections.Generic; +using System; +using System.Collections.Generic; using System.IO; -using System.Reflection; using VAR.Json; namespace VAR.WebFormsCore.Code @@ -9,7 +9,7 @@ namespace VAR.WebFormsCore.Code { private static string GetPrivatePath(string baseDir, string fileName) { - string currentDir = Path.GetDirectoryName(new System.Uri(Assembly.GetExecutingAssembly().Location).AbsolutePath); + string currentDir = Directory.GetCurrentDirectory(); string privatePath = Path.Combine(currentDir, baseDir); while (Directory.Exists(privatePath) == false) {