Access build property in msbuild file

Try to access build property in msbuild file.
This is what I have in my msbuild file, but both proprerties have no value. Is anything wrong with this?

<PropertyGroup>     <Version>$(system_build_number)</Version>     <DepVersion>$(dep_bt30_system_build_number)</DepVersion> </PropertyGroup>
<Message Text="Version: $(Version).   DepVersion: $(DepVersion)." />


Teamcity version: 6.0.2
MSBuild Version: .Net Framework 4.0
MSBuild Tools Version: 4.0

2 comments
Comment actions Permalink

Hi

within MSBuild omit system prefix:

<Version>$(build_number)</Version>



Properties of dependent builds are not accessible directly.
You'll need to create new build parameter like

dep.build.number=%dep.bt30.build.number%



Michael
0
Comment actions Permalink

thanks, it works perfectly.

0

Please sign in to leave a comment.