In VS 2013, in Compile in Project Properties, I see two configurations that seem the relate to the same thing (printscreen right below). Platform and Target CPU.
What's the difference? Is there any?
Visual Studio enables you to set up your application builds to target different platforms (processor architectures), such as x86 and x64. For 64-bit platform support for . NET development, see 64-bit applications. Note. Visual Studio runs as a 32-bit application.
To enable x64 as a CPU platform targetClick Configuration Manager. In the Configuration Manager dialog, open the Active solution platform drop-down list box and click <New> …. In the New Solution Platform dialog, select x64 in the Type or select the new platform drop-down list box.
The default setting, "Any CPU", means that the assembly will run natively on the CPU it is currently running on. Meaning, it will run as 64-bit on a 64-bit machine and 32-bit on a 32-bit machine. If the assembly is called from a 64-bit application, it will perform as a 64-bit assembly and so on.
By default the Platform strings are the same as the Target CPU or Mixed. However, since the Platform is a user configurable string you could give them any name or decouple them from the target CPU.
I'd not recommend decoupling them, as it can be very confusing.
But as your screenshot shows it's possible to create a Solution Configuration or Project Configuration named AnyCPU, yet configure your project to to build x86. Confusing as hell, but possible.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With