开发者

Project builds skipped with Any CPU build platform

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.

开发者_如何学Go(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?


Ok, so I think I have an answer now: I read somewhere that if you are running VS on a 64-bit machine, and you are debugging 64-bit code, edit-and-continue is not supported. I am surmising that in order to work around this, VS defaults to x86 mode instead of AnyCpu.

If anyone finds a better explanation, I'd love to hear it.


It worked for me when I opened the project as administrator

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜