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?
<Message Text="Version: $(Version). DepVersion: $(DepVersion)." />
Teamcity version: 6.0.2
MSBuild Version: .Net Framework 4.0
MSBuild Tools Version: 4.0