Build

Platform target

Project -> Properties -> Build -> Platform target
There are 4 available options:
  • Any CPU
  • x86
  • x64
  • Itanium
platform_target.png

Names x86 and x64 can be confusing. In fact, compiler generate the same IL code in each case, just platform status information in the assembly’s CLR header will be different.
x86 and x64 must be selected only if project linked with native DLLs which are either 32bit or 64bit. In other cases choose Any CPU.
Any CPU means that the assembly will run natively on any platform: it will run as 64-bit on a 64-bit machine and 32-bit on a 32-bit machine.

tags: visual studio, C#, .net, build, platform target, any cpu

Last edited Jul 9, 2012 at 11:17 PM by alekseiv, version 3

Comments

No comments yet.