我如何找出如果一个.NET程序集包含非托管code?程序、NET、code

2023-09-04 00:15:01 作者:不知不觉亦不痛

.NET包含的托管和非托管code不能与其他组件ILMerged。混合组件

.NET assemblies that contain a mixture of managed and unmanaged code cannot be ILMerged with other assemblies.

我如何可以验证一个给定的.NET程序集包含纯粹的管理code,或混合托管和非托管code?

How can I verify if a given .NET assembly contains purely managed code, or a mix of managed and unmanaged code?

推荐答案

运行的 PEVerify 对你的装配工具。

Run the PEVerify tool against your assembly.

PEVerify.exe随Visual Studio中,如安装这其中带有的Visual Studio 2012:

PEVerify.exe is installed along with Visual Studio, e.g. this one comes with Visual Studio 2012:

C:\ Program Files文件(x86)的\微软的SDK \的Windows \ v8.0A \ BIN \ NETFX 4.0工具\ PEVerify.exe