How do I get system property from teamcity in msbuild file?

北慕城南 提交于 2019-12-05 14:54:08

Try removing system_ part from property's name.

The documentation says

  • Don't forget to leave the "system." part out of the system
    properties.
  • When using MSBuild, replace "." with "_" when you reference property names.

(However this is version 6.5 documentation, maybe it woun't work in your case but you can try it anyway)

Just use $(system_property_name) in your MSBuild file.

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