Browse Source

UniversalAssemblyResolver: Unix can be either .NET Core or Mono, hence put the check last.

pull/1652/head
Siegfried Pammer 6 years ago
parent
commit
22fa104ed6
  1. 4
      ICSharpCode.Decompiler/Metadata/UniversalAssemblyResolver.cs

4
ICSharpCode.Decompiler/Metadata/UniversalAssemblyResolver.cs

@ -35,10 +35,10 @@ namespace ICSharpCode.Decompiler.Metadata @@ -35,10 +35,10 @@ namespace ICSharpCode.Decompiler.Metadata
// ever need this...
if (Type.GetType("Mono.Runtime") != null)
decompilerRuntime = DecompilerRuntime.Mono;
else if (Environment.OSVersion.Platform == PlatformID.Unix)
decompilerRuntime = DecompilerRuntime.Mono;
else if (typeof(object).Assembly.GetName().Name == "System.Private.CoreLib")
decompilerRuntime = DecompilerRuntime.NETCoreApp;
else if (Environment.OSVersion.Platform == PlatformID.Unix)
decompilerRuntime = DecompilerRuntime.Mono;
}
DotNetCorePathFinder dotNetCorePathFinder;

Loading…
Cancel
Save