问题
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