|
|
|
@ -138,7 +138,7 @@ namespace ICSharpCode.Decompiler.Metadata
@@ -138,7 +138,7 @@ namespace ICSharpCode.Decompiler.Metadata
|
|
|
|
|
this.dotNetCorePathFinder = new Lazy<DotNetCorePathFinder>(InitDotNetCorePathFinder); |
|
|
|
|
if (mainAssemblyFileName != null) |
|
|
|
|
{ |
|
|
|
|
string baseDirectory = Path.GetDirectoryName(mainAssemblyFileName); |
|
|
|
|
this.baseDirectory = Path.GetDirectoryName(mainAssemblyFileName); |
|
|
|
|
if (string.IsNullOrWhiteSpace(this.baseDirectory)) |
|
|
|
|
this.baseDirectory = Environment.CurrentDirectory; |
|
|
|
|
AddSearchDirectory(baseDirectory); |
|
|
|
|