[opt] AOTAssemblyMetadataStripper保存时保持table~的id稳定
parent
f30e2f5b33
commit
36ca398543
|
@ -1,4 +1,5 @@
|
||||||
using dnlib.DotNet;
|
using dnlib.DotNet;
|
||||||
|
using dnlib.DotNet.Writer;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
@ -29,6 +30,8 @@ namespace HybridCLR.Editor.AOT
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
var writer = new System.IO.MemoryStream();
|
var writer = new System.IO.MemoryStream();
|
||||||
|
var options = new ModuleWriterOptions(mod);
|
||||||
|
options.MetadataOptions.Flags |= MetadataFlags.PreserveAll;
|
||||||
mod.Write(writer);
|
mod.Write(writer);
|
||||||
writer.Flush();
|
writer.Flush();
|
||||||
return writer.ToArray();
|
return writer.ToArray();
|
||||||
|
|
Loading…
Reference in New Issue