title: Assembly Versioning with TeamCity
body: <p>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.</p>
  
  <p>I've configured TeamCity to use a build label of</p>
  
  <blockquote>
    <p>Major.Minor.{Build}.{Revision}</p>
  </blockquote>
  
  <p>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</p>
  
  <blockquote>
    <p>2.5.437.4423</p>
  </blockquote>
  
  <p>What techniques would you suggest to ensure that all of the assembly versions match the TeamCity build label?</p>