缺少调试|任何CPU构建配置的项目,并默认为调试| 86在Windows 64 [英] Missing Debug|Any CPU build configuration for projects and defaulting to Debug|x86 on Windows x64

查看:222
本文介绍了缺少调试|任何CPU构建配置的项目,并默认为调试| 86在Windows 64的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚重新安装了Windows 7 64位系统上我的盒子。安装成功了,我已经受够了操作系统作为一个整体没有问题。我相信这是一个配置问题,Windows或.NET 64位。

I've just recently reinstalled Windows 7 x64 on my box. The installation succeeded, and I've had no issues with the operating system as a whole. I believe there is a configuration issue with either Windows or .NET x64.

症状

  1. 默认生成配置对于新项目是的调试| 86 的。
    这感觉不对。我运行在x64操作系统,我认为在过去的三个版本在此之前默认生成的配置已经相当有信心的调试|任何CPU
  2. 任何CPU 的不存在作为构建配置的项目在所有的,我有理由相信它应该。要构建什么64我需要明确地添加一个x64平台项目。
  1. The default build configurations for new projects is Debug|x86.
    This doesn't feel right. I'm running an x64 OS, and I'm reasonably confident that for the last three versions prior to this the default build config has been Debug|Any CPU.
  2. Any CPU does not exist as a build configuration for projects at all, and I'm reasonably sure it should. To build anything x64 I need to explicitly add an x64 platform for the project.

我是正确的思维的调试|任何CPU 的通常是默认配置。如果是的话,有哪些可能的原因这不是任何新项目的情况下产生的?

Am I correct in thinking that Debug|Any CPU is normally the default configuration. If so, what are some possible causes for this not being the case for any new projects created?

推荐答案

默认为新项目变更为86 Visual Studio 2010中 - 你可以阅读一些MS'推理这里克·拜尔斯的博客文章中的 <一href="http://blogs.msdn.com/b/rmbyers/archive/2009/06/09/anycpu-exes-are-usually-more-trouble-then-they-re-worth.aspx">Any CPU EXE文件通常是更多的麻烦比他们的价值 的。

The default for new projects was changed to x86 in Visual Studio 2010 - you can read some of MS' reasoning for this in Rick Byers' blog post Any CPU Exes are usually more trouble than they're worth.

您应该能够添加的任何CPU 的作为配置管理器对话框中的其它平台,但。我有Windows&NBSP; Vista 64位和放大器; Visual Studio 2010和任何CPU,x64和安腾得到的选项。你可以尝试重新运行安装程序的Visual Studio,看看是否有您没有安装任何选项。

You should be able to add Any CPU as an additional platform in the Configuration Manager dialog though. I have Windows Vista x64 & Visual Studio 2010 and get options for Any CPU, x64 and Itanium. You could try re-running the installer for Visual Studio and see if there were any options you didn't install.

有趣的是,似乎86只默认为新的EXE项目 - 如果你创建一个新的类库项目,则默认为任何CPU。这是有意义的,因为它是EXE文件,其确定在CLR运行的哪个版本的平台上,而一个任何CPU DLL可以通过x86和x64的EXE文件被加载

Interestingly, it seems x86 is only the default for new EXE projects - if you create a new Class Library project it will default to Any CPU. This makes sense as it is the platform of the EXE file that determines which version of the CLR to run, whereas an Any CPU DLL can be loaded by both x86 and x64 EXE files.

这篇关于缺少调试|任何CPU构建配置的项目,并默认为调试| 86在Windows 64的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆