將我的編譯器轉換爲使用Mono.Cecil而不是Reflection.Emit後,我從peverify中得到一個錯誤。peverify ClassLayout有標記爲AutoLayout的父TypeDef
Microsoft (R) .NET Framework PE Verifier. Version 4.0.30319.33440
Copyright (c) Microsoft Corporation. All rights reserved.
[MD]: Error: ClassLayout has parent TypeDef token=0x02000002 marked AutoLayout. [token:0x00000001]
1 Error(s) Verifying test.exe
我一直沒有找到任何有關這意味着什麼的信息。如果需要,我可以提供可執行文件。
您是否看過使用兩種方法反彙編代碼的差異?有什麼不同?另外,你能否提供一個最小的示例代碼來生成導致上述錯誤的程序集? – svick 2014-11-01 22:27:31