How do I get system property from teamcity in msbuild file?
teamcity version:6.0
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>