How can I determine if a .NET assembly was built for x86 or x64?

后端 未结 15 1049
面向向阳花
面向向阳花 2020-11-22 09:08

I\'ve got an arbitrary list of .NET assemblies.

I need to programmatically check if each DLL was built for x86 (as opposed to x64 or Any CPU). Is this possible?

15条回答
  •  迷失自我
    2020-11-22 09:27

    Try to use CorFlagsReader from this project at CodePlex. It has no references to other assemblies and it can be used as is.

提交回复
热议问题