From 8608a59056c923b2988bfe7436a960cec1e88b53 Mon Sep 17 00:00:00 2001 From: vis2k Date: Mon, 23 Aug 2021 19:25:40 +0800 Subject: [PATCH] comments --- .../ILPostProcessorReflectionImporter.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Assets/Mirror/Editor/Weaver/EntryPointILPostProcessor/ILPostProcessorReflectionImporter.cs b/Assets/Mirror/Editor/Weaver/EntryPointILPostProcessor/ILPostProcessorReflectionImporter.cs index 5bb1ad645..95da335be 100644 --- a/Assets/Mirror/Editor/Weaver/EntryPointILPostProcessor/ILPostProcessorReflectionImporter.cs +++ b/Assets/Mirror/Editor/Weaver/EntryPointILPostProcessor/ILPostProcessorReflectionImporter.cs @@ -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); }