4

I'm using the "visual studio (.sln)" builder in teamcity 6.0, I would like to compile both the "debug" and "release" configuration targets. can I do it using a single builder so I dont repeat myself?

Aviad Rozenhek
  • 2,259
  • 3
  • 21
  • 42

3 Answers3

4

In teamcity build steps try this.

In both build steps use the same solution. It's a crap but there isn't any better.

buildstep0

runner type : msbuild

Command line parameters: /p:Configuration=Debug

buildstep1

runner type : msbuild

Command line parameters: /p:Configuration=Release

Infernal
  • 56
  • 3
  • Will this work? Setting /P in Command line parameters usually causes this error: http://stackoverflow.com/questions/6218486/teamcity-says-to-use-build-parameters-instead-of-property-in-an-msbuild-st – Luke Puplett Dec 18 '12 at 17:54
0

You could create a new target in csproj that then calls to Release and Debug

veljkoz
  • 8,384
  • 8
  • 55
  • 91
0

Not sure if this would really meet your needs as far as not repeating yourself goes, but you could have two build steps in the build configuration. One for each of Release and Debug.

Eric
  • 466
  • 6
  • 9