问题描述
我在2012年有一个Web应用程序,我想从2010年的解决方案转换。它在工具栏,配置管理器和发布向导中仅列出一个配置调试。有没有任何设置要在web.config或其他地方更改?我不认为它的视觉工作室级别的设置,因为其他新项目有调试和发布设置
I have a web application in 2012, which I suppose converted from 2010 solution. It has only one configuration "Debug" listed in toolbar, configuration manager and publish wizard. Is there any settings to be changed in the web.config or other places? I don't think its a setting at visual studio level because other new projects has both the Debug and Release settings
推荐答案
配置是可用的,是解决方案文件的一部分。当您使用文本编辑器打开* .sln文件时,您将找到一个类似于以下内容的节:
The configurations that are available, are part of the solution file. When you open the *.sln file with a text editor, you will finde a section that looks like this:
GlobalSection(SolutionConfigurationPlatforms)= preSolution
Debug |任何CPU = Debug |任何CPU
Debug | x86 = Debug | x86
发布|任何CPU =发布|任何CPU
发布| x86 =发布| x86
EndGlobalSection
在这种情况下,我假设 code>缺少。要为您的解决方案添加新配置,请使用配置管理器。 您可以为 添加新配置
In your case, I assume that the (in this example two) entries for Release
are missing. In order to add a new configuration to your solution, you have use the Configuration Manager.
菜单 - > Build - > Configuration Manager ... 。
Menu -> Build -> Configuration Manager... under Active Solution Configurations you can add a new config for Release.
这篇关于释放配置在VS 2012中不可用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!