Skip to content

Commit

Permalink
Bug Fix - config.json not being used.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sudip Mandal (HCL America Inc) committed May 23, 2020
1 parent 6a7fe6d commit 4cad023
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Common/Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,16 @@ public static Dictionary<string,Type> 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)
Expand Down

0 comments on commit 4cad023

Please sign in to comment.