Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using TeamCity with MSBuild and Build Parameters (not beeing used)

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?

like image 325
Kjellski Avatar asked Nov 27 '13 08:11

Kjellski


1 Answers

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.

like image 144
Kjellski Avatar answered Sep 28 '22 14:09

Kjellski