Reputation: 45105
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:
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
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