2010-06-19 75 views
47

我刚刚开始研究一个新项目,并且无法将生成操作设置为调试/发布。这是一个巨大的问题!为什么我的配置管理器在Visual Studio 2010中被禁用?

我在我的系统上有另一个解决方案,打开时允许我更改解决方案配置。所以它必须与这个特定的解决方案有关?

+0

请问项目文件(.csproj,.fsproj,.vbproj,...)有调试/发布配置定义? – Brian 2010-06-19 16:11:23

回答

77

(从http://www.gregcons.com/KateBlog/HowDoIMakeADebugBuild.aspx,包括截图)

弹出工具,选项,并转到下项目和解决方案的常规部分。找到“显示高级构建配置”并检查它。

+5

确实。总体可发现性失败。而且我在三年前发布了博客:-) – 2010-06-19 18:22:41

+1

我之前就已经走过这条路了,我仍然不得不谷歌来找出它。非常令人沮丧。谢谢。 – redcalx 2010-06-19 22:13:55

+0

真棒感谢凯特隐藏GEMS – 2015-10-06 09:54:30

0

a Google search

Tools | Customize from the menu. 

In the Build section, drag the "Solution Configuration" item from the list 
on the right to the build toolbar. You might also want to drag the "Platform 
Configuration" item as well. The Configuration Manager itself is available 
from the drop-down list of either of those controls. Also check 
Tools|Customize|Toolbars to make sure that the Build toolbar is visible. 
+5

配置管理器只是完全禁用此项目。我甚至将“配置管理器”添加到顶部菜单栏 - >它显示为灰色。 ??? – 2010-06-19 04:29:16

2

正确的解决方案是:

  1. 工具,在项目和解决方案选项
  2. 单击常规部分。
  3. 选中显示高级构建配置。

你应该会看到解决方案配置下拉列表将被启用

+6

我不会争论,但这与接受的答案有什么不同? – 2014-08-08 21:48:59

相关问题