This commit is contained in:
vis2k 2021-08-23 19:25:40 +08:00
parent 5edcdaf074
commit 8608a59056

View File

@ -17,6 +17,9 @@ internal class ILPostProcessorReflectionImporter : DefaultReflectionImporter
public ILPostProcessorReflectionImporter(ModuleDefinition module) : base(module)
{
// find the correct library for System.Private.CoreLib.
// either mscorlib or netstandard.
// defaults to System.Private.CoreLib if not found.
_correctCorlib = module.AssemblyReferences.FirstOrDefault(a => a.Name == "mscorlib" || a.Name == "netstandard" || a.Name == SystemPrivateCoreLib);
}