How to correct the Platform to AnyCPU in a multiple-project solution in Visual Studio?
visual-studio-2010
Solution
Go to Build -> Configuration Manager
- Select for the overall solution the Active Platform = AnyCPU
- Go to the Console Application line and Set the Platform to AnyCPU
- If there isn't the voice create a new configuration
- Check that the Console Application is flagged for compile.
Also look at this discussion about console applications default to x86
Problem
I had a solution with one project set to AnyCPU. Then I added a Console application as a second project, who's default Platform seems to be x86. Now it's ( - the Console application) being built as an x86 and I can't change it. The "Solution Platform" always shows "AnyCPU". But when I show the Console application's properties -> build. It shows x86 without any way to change it. So how do I change it?