This commit is contained in:
vis2k 2021-08-23 17:09:30 +08:00
parent 2fc649322f
commit ab5b27909c

View File

@ -90,6 +90,7 @@ public override ILPostProcessResult Process(ICompiledAssembly compiledAssembly)
// resolve mirror assembly
// TODO is this safe with ILPP multithreading though?
// (it sure has to exist while we process this assembly since it's referenced)
// TODO use our custom resolver. default fails to resolve in ReaderWriterProcessor.LoadMessageReadWriter -> IsInterface extension
using (DefaultAssemblyResolver mirrorAsmResolver = new DefaultAssemblyResolver())
using (AssemblyDefinition mirrorAssembly = AssemblyDefinition.ReadAssembly(mirrorAssemblyPath, new ReaderParameters { ReadWrite = false, ReadSymbols = false, AssemblyResolver = mirrorAsmResolver }))
{