Luke Puplett
Luke Puplett

Reputation: 45105

Setting build configuration to staging

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.

Upvotes: 4

Views: 3911

Answers (1)

John Hoerr
John Hoerr

Reputation: 8025

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.

Upvotes: 7

Related Questions