msbuild - How to build both Debug and Release for a TeamCity project -


The first idea to come to my mind is to use two visual studio (.sln) build steps - one for each configuration (Supports multiple build TC v5 +)

Is there any better way?

We have two different MSBuild targets that create solutions using various properties: / P>

  & lt; Target name = "build-debug" & gt; & Lt; MSBuild Projects = "OurSolution.sln" target = "reconstruction" property = "configuration = debug" /> & Lt; / Target & gt; & Lt; Target name = "build-release" & gt; & Lt; MSBuild Projects = "OurSolution.sln" target = "reconstruction" property = "configuration = release" /> & Lt; / Target & gt; With TeamCity, we have a "configuration" (in TeamCity-Bol), which calls the  Build-Debug  goal, and the one that calls  Build -Release .   

Comments