Question

I've had command line params for my projects configured in teamcity and got tired on the warning in build logs:

MSBuild command line parameters contain "/property:" or "/p:". It is recommended to define System Property on Build Parameters instead.

Now I've tried to move from the manually entered properties all arround my projects into Build Parameters and a template. But no matter what I try, it's telling me nothing about what I've set up for configuration there and is not even using it at all.

How would one properly map something like /p:Configuration=StagingDeploy to a build parameter, and of what type should it be?

Was it helpful?

Solution

I'm sorry to answer my own question, nevertheless, maybe this helps someone to get this right earlier then me.

It seems you have to define System Properties instead of Configuration Parameters under the Build Parameters tab in TeamCity. I'm a little confused why they've used this naming, but as the warning already stated:

It is recommended to define System Property on Build Parameters instead.

You're clearly in advance if you're able to read here.

Sorry.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top