When I compile a .net program I can tell it to compile for /platform:anycpu or /platform:x86 etc. Is there someway I can determine what platform value a .net exe/dll has been compiled with?
See my answer below for a program that determines the platform flag. Or use corflags.exe.
This may be able to help for executables:
http://www.mitec.cz/exe.html
If you need to programmatically check against .net dlls, then there are these posts:
How to find if a native DLL file is compiled as x64 or x86?
Check if unmanaged DLL is 32-bit or 64-bit?