From 4cad0234c38b2222dd410c5beb57d9ecf1b7f830 Mon Sep 17 00:00:00 2001 From: "Sudip Mandal (HCL America Inc)" Date: Fri, 22 May 2020 18:16:14 -0700 Subject: [PATCH] Bug Fix - config.json not being used. --- src/Common/Utils.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Common/Utils.cs b/src/Common/Utils.cs index 4d33173..89f4a80 100644 --- a/src/Common/Utils.cs +++ b/src/Common/Utils.cs @@ -41,10 +41,16 @@ public static Dictionary sourceMap { get{ internal static string GetExeFolder() { +#if DEBUG + string codeBase = Assembly.GetExecutingAssembly().CodeBase; UriBuilder uri = new UriBuilder(codeBase); string path = Uri.UnescapeDataString(uri.Path); return Path.GetDirectoryName(path); +#else + return Environment.CurrentDirectory; +#endif + } internal static string DownloadUrlToDisk(string url)