Set up assembly configuration for setting

Simple question. How to configure build configuration for something other than Debug?

Setting /P:Configuration=Staging in the command-line options field results in this error:

TeamCity says to use "Build Parameters" instead of "/ property:" in the MSBuild phase. What does it mean?

So how is this done? I need to build MSDeploy packages for all configurations, I can get packages for assembly, but it's all Debug.

+4
source share
1 answer

The way you do this is good - although it is possible to use the lowercase /p: Our team also does this. TeamCity does not throw an error, just trying to provide some useful information.

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

+7
source

All Articles