Could some tell me the difference between 32bit and 64bit .NET assemblies?
I understand when it is needed to be precise instead of selecting AnyCPU configuration.
Regards, Mita
Could some tell me the difference between 32bit and 64bit .NET assemblies?
I understand when it is needed to be precise instead of selecting AnyCPU configuration.
Regards, Mita
I've had some issues running x64 bit code, when interacting with other applications (via COM).
There is some bit in the header of the DLL/EXE that is set to x86 or x64 code, that the .Net loader looks at. The IL is not changed. You can even set it after compilation using CorFlags
There are few assembly targets in .NET * x86 - 32bit, the application will run as 32bit process, either on Win64 * x64 - 64bit, the application will run as 64bit process on Win64, and fails to run on 32bit system. * AnyCPU - the application will use the most appropriate targeting. * IA64 - Intel Itanium platform
Generally, in pure managed applications the most appropriate target is AnyCPU. If your application uses PInvoke or COM components, you are possible needed to target your application according to target of unmanaged component you use.