Custom solution configuration not showing up in Visual Studio 2010

前端 未结 4 1846
无人及你
无人及你 2020-12-13 19:28

I added a solution configuration called \'Staging\'. It does show up on the drop down in VS, but not in the Configuration Manager in \'Package/Publish Web\' screen. On this

4条回答
  •  感动是毒
    2020-12-13 20:03

    The cleanest way to do this that I have found is to modify the proect file (.csproj) directly in a text editor.

    If you have a project that already has the desired configuration, open it up and find the appropriate PropertyGroup element (e.g. the one for the "Demo" configuration below).

    Copy that PropertyGroup element and paste it after the equivalent element for the Debug configuaration.

    If you do not already have one with the desired configuration for some reason, you should just be able to copy the Debug one (or Release if it is more appropriate) and change the name from "Debug" to whatever your configuration name is.

      
        bin\
        TRACE
        pdbonly
        true
        AnyCPU
        prompt
        4
        MinimumRecommendedRules.ruleset
        false
      
    

提交回复
热议问题