Release configuration not available in VS 2012

非 Y 不嫁゛ 提交于 2019-12-13 02:32:39

问题


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


回答1:


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|Any CPU = Debug|Any CPU Debug|x86 = Debug|x86 Release|Any CPU = Release|Any CPU Release|x86 = Release|x86 EndGlobalSection

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.

Menu -> Build -> Configuration Manager... under Active Solution Configurations you can add a new config for Release.



来源:https://stackoverflow.com/questions/30014382/release-configuration-not-available-in-vs-2012

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!