Project builds skipped with Any CPU build platform

Posted by JMarsch on Stack Overflow See other posts from Stack Overflow or by JMarsch
Published on 2010-02-24T18:14:26Z Indexed on 2010/05/10 15:14 UTC
Read the original article Hit count: 224

Filed under:

All:

We are using Visual Studio 2010, and we have recently upgraded our workstations to Windows 7/64-bit.

I have a question: When I create a new solution, it seems to want to use the x86 platform. If I change the solution to "any cpu" and then I add a new project to the solution, the project will not have an "any cpu" build option, and it will be deselected from building (in configuration manager).

Something seems wrong here. Here's what I want to have (assuming that it is supported):

I want my solutions' platforms to default to "Any CPU" (I believe that means that at JIT time, the assembly will be either x86 or 64-bit, based on the machine that loaded it).

When I add a new project to the solution, I want for it to have an "any cpu" solution, and I want for that projec to build by default.

(basically, the same behavior that we had in VS 2008 on 32-bit workstations). How do I do that? Is there some additional thing that I need to know now that I am using a 64-bit workstation?

© Stack Overflow or respective owner

Related posts about visual-studio