【发布时间】:2010-06-19 03:58:07
【问题描述】:
我刚开始处理一个新项目,但无法将构建操作设置为调试/发布。这是个大问题!
我的系统上有另一个解决方案,打开后,我可以更改解决方案配置。那么它一定和这个特定的解决方案有关?
【问题讨论】:
-
项目文件(.csproj、.fsproj、.vbproj、...)是否定义了调试/发布配置?
标签: .net visual-studio visual-studio-2010
我刚开始处理一个新项目,但无法将构建操作设置为调试/发布。这是个大问题!
我的系统上有另一个解决方案,打开后,我可以更改解决方案配置。那么它一定和这个特定的解决方案有关?
【问题讨论】:
标签: .net visual-studio visual-studio-2010
(来自http://www.gregcons.com/KateBlog/HowDoIMakeADebugBuild.aspx,包括截图)
调出工具、选项,然后转到项目和解决方案下的常规部分。找到“显示高级构建配置”并检查它。
【讨论】:
正确的解决方案是:
您应该会看到解决方案配置下拉菜单将被启用
【讨论】:
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.
【讨论】: