Browse Source

Fix possible bug in DotNetCorePathFinder.

pull/960/head
Siegfried Pammer 8 years ago
parent
commit
79ef84426a
  1. 2
      ICSharpCode.Decompiler/DotNetCore/DotNetCorePathFinder.cs

2
ICSharpCode.Decompiler/DotNetCore/DotNetCorePathFinder.cs

@ -99,7 +99,7 @@ namespace ICSharpCode.Decompiler
string FallbackToDotNetSharedDirectory(AssemblyNameReference name, string version) string FallbackToDotNetSharedDirectory(AssemblyNameReference name, string version)
{ {
if (dotnetBasePath == null) return null; if (dotnetBasePath == null) return null;
var basePath = Path.Combine(dotnetBasePath, "shared\\Microsoft.NETCore.App", version); var basePath = Path.Combine(dotnetBasePath, "shared", "Microsoft.NETCore.App", version);
if (File.Exists(Path.Combine(basePath, name.Name + ".dll"))) { if (File.Exists(Path.Combine(basePath, name.Name + ".dll"))) {
return Path.Combine(basePath, name.Name + ".dll"); return Path.Combine(basePath, name.Name + ".dll");
} else if (File.Exists(Path.Combine(basePath, name.Name + ".exe"))) { } else if (File.Exists(Path.Combine(basePath, name.Name + ".exe"))) {

Loading…
Cancel
Save