4

Simple question. How do I set the build configuration to something other than Debug?

Setting /P:Configuration=Staging in the Command line parameters box, leads to this error:

TeamCity says to use "Build Parameters" instead of "/property:" in an MSBuild step. What does that mean?

So how is it done? I need to build MSDeploy packages for all configurations, I can get the packages to build but everything is Debug.

Community
  • 1
  • 1
Luke Puplett
  • 42,091
  • 47
  • 181
  • 266

1 Answers1

7

The way you're doing it is fine -- although perhaps use a lowercase /p:. Our team does it this way too. TeamCity isn't throwing an error, it's just trying to provide some helpful information.

JetBrains provides some documentation for its preferred method at the bottom of the page under Using System Properties in Build Scripts.

John Hoerr
  • 7,955
  • 2
  • 30
  • 40