Does Msbuild recognise any build configurations other than DEBUG|RELEASE

后端 未结 4 702
臣服心动
臣服心动 2021-01-03 20:49

I created a configuration named Test via Visual Studio which currently just takes all of DEBUG settings, however I employ compiler conditions to determine some specific acti

4条回答
  •  爱一瞬间的悲伤
    2021-01-03 21:48

    I haven't done much with defining an MSBUILD configuration file but I have done builds of different configurations using a batch file like this

    msbuild /v:n /p:Configuration=Release "Capture.sln" 
    msbuild /v:n /p:Configuration=ReleaseNoUploads "Capture.sln" 
    

    I defined the ReleaseNoUploads configuration inside Visual Studio.

    Here's what I had to do for that (this is Visual Studio 2005):

    • Open the Tools:Options menu, go to the Projects and Solutions:General option, and check Show advanced build configurations.
    • From there, go to the Build:Configuration Manager menu
    • In the dialog that pops up, click on the Active solution configuration pulldown and click to create a new build configuration.

提交回复
热议问题