TeamCity says to use “Build Parameters” instead of “/property:” in an MSBuild step. What does that mean?

為{幸葍}努か 提交于 2019-11-28 03:26:13
manojlds

You have to add Build Parameters under Properties and environment variables in the configuration

`

So in the command line parameters in the Build Step for MSBUild, remove any property that is specified as /p: and add each of those to the Build Parameters ( screenshot above) and give the values

Anthony Mastrean

It all happens behind the scenes! You just have to follow the right conventions. In your MSBuild script, you use the regular variable notation

$(DbPath)

And in TeamCity, you define a system or env variable

system.DbPath

TeamCity will automagically send all of its system/env variables to your MSBuild task, removing the 'system' or 'env' part. And you don't have to write /property:DbPath=system.DbPath in your TeamCity task.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!