Our Teamcity build currently generates build numbers in the format 1.0.0.[SVN REVISION] which it passes through to MSBUILD.
I need to change this to the format 1.0.[DLL VERSION].[SVN REVISION] where we insert a de-dotted version of a dependant dll in. For example if our dependant dll is version 1.2.3.4 the generated build number would be 1.0.1234.[SVN REVSION].
The dependant dll is part of the build source so I had hoped I could do something with build parameters and a little exe that interegates it for the version info but cannot see any way to incorporate this through the UI.
Any ideas if this is possible?
You can output the build number during the execution of the build script, and teamcity will use that output to label the build. For example, I label my build with the same version that I put into AssemblyInfo.cs. Part of that version (Major, Minor) is actually in the file already, the other part (Build, Revision) gets added during the build.
From my msbuild script:
you just output the version during the build the format is
##teamcity[buildNumber '<buildnum>']