How can I get the processor architecture of an assembly dll? [duplicate]
This question already has an answer here: How to check programmatically whether a managed assembly is x86, x64 or AnyCPU? 2 answers Can I get the processor architecture by loading the dll programmatically in c#? Is there a class that can do this? I need to get wether the dll is x86, x64, MSIL etc.. Mike Ohlsen Assuming you are only looking at .net assemblies, you can use CorFlags.exe for look at the header of the image. This blog post explains the usage to determing how to read the results. Excerpt: Usage: Corflags.exe Assembly [options] If no options are specified, the flags for the given