Browse Source

Add search path for Compact Framework 3.5 mscorlib.dll

pull/1347/head
Chris Poole 7 years ago
parent
commit
e812a1f230
  1. 11
      ICSharpCode.Decompiler/Metadata/UniversalAssemblyResolver.cs

11
ICSharpCode.Decompiler/Metadata/UniversalAssemblyResolver.cs

@ -405,6 +405,17 @@ namespace ICSharpCode.Decompiler.Metadata @@ -405,6 +405,17 @@ namespace ICSharpCode.Decompiler.Metadata
}
}
if (version.Major == 3 && version.Minor == 5) {
string cfBasePath = Path.Combine((Environment.Is64BitOperatingSystem ?
Environment.GetFolderPath(Environment.SpecialFolder.ProgramFilesX86) :
Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles)),
@"Microsoft.NET\SDK\CompactFramework\v3.5\WindowsCE\");
if (Directory.Exists(cfBasePath)) {
return cfBasePath;
}
}
if (throwOnError)
throw new NotSupportedException("Version not supported: " + version);
return null;

Loading…
Cancel
Save