How to Achieve this in C#. thanks...
+2
A:
Unless you get a better solution - run Corflags using Process.Start and parse the output.
Or better yet - read the file header from .NET - luckily a this question already been answered: How to find if native dll is compiled as x64 or x86?
Dror Helper
2010-02-25 11:35:01
So doesn't that make it a duplicate?
Brian Rasmussen
2010-02-25 11:42:09
hi Dror,I Have already gone through the link but it is working for DLL not for libraries.Thanks.
Anjan
2010-02-25 11:46:37
Hi All,I am getting exception on the below line when i am trying to find whether the lib is x86 or x64...UInt32 peHead = br.ReadUInt32();Is i need to do some chnages for the library files.
Anjan
2010-02-25 12:01:19