I'm working on a C#/VB.Net project that uses SVN and TeamCity build server. A dozen or so assemblies are produced by the build. I want to control the assembly versions so that they all match up and also match the TeamCity build label.
I've configured TeamCity to use a build label of
Major.Minor.{Revision}.{Build}
Where Major and Minor are constants that I set manually, {Revision} is determined by the SVN repository version at checkout and {Build} is a TeamCity auto-incrementing build counter. So an example build label would be
2.5.4423.437
What techniques would you suggest to ensure that all of the assembly versions match the TeamCity build label?