Difference between x86 and 64bit build in .NET.

Can someone tell me the difference between 32-bit and 64-bit .NET assemblies?

I understand when you need to be precise, instead of choosing AnyCPU configuration.

Regards, Mita p>

+4
source share
3 answers

There are several build goals in .NET. * x86 - 32bit, the application will work as a 32-bit process, or on Win64 * x64 - 64 bits, the application will work as a 64-bit process on Win64 and will not be able to work on a 32-bit system. * AnyCPU - the application will use the most appropriate targeting. * IA64 - Intel Itanium Platform

Typically, in clean, managed applications, AnyCPU is the most appropriate target. If your application uses the PInvoke or COM components, you can target your application to the target level of the unmanaged component that you are using.

+3
source

I am having problems with x64-bit code when interacting with other applications (via COM).

The DLL / EXE header that is installed on x86 or x64 has a bit that the .Net bootloader is looking at. IL does not change. You can even install it after compilation with CorFlags

0
source

Source: https://habr.com/ru/post/1312944/


All Articles