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

穿精又带淫゛_ 提交于 2019-12-07 09:44:23

问题


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

teamcity version:6.0


回答1:


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)




回答2:


Just use $(system_property_name) in your MSBuild file.




回答3:


<PropertyGroup>
    <Version>$(BUILD_NUMBER)</Version>
</PropertyGroup>


来源:https://stackoverflow.com/questions/5000826/how-do-i-get-system-property-from-teamcity-in-msbuild-file

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