Team Build: matching assembly version number to build label
Now you create a new Team Build type that runs daily and uses your custom build label, and when it builds, the source code tree gets labeled with that build label (by default behaviour).
Now you want the compiled assemblies from that build to use as their version number the build label. (So you want to modify the AssemblyInfo.cs file, I suppose).
Is there an elegant way of doing this?
I can think of perhaps two ways you might do this:
In the build process, have a pre-compile task that looks for all AssemblyInfo.Cs (or .vb) files, and uses the <WriteLinesToFile> task to add the line to the file with the appropriate syntax. Or create a custom task in code to do the same thing but using Reflection.
It seems like a simple request, but one that has a complex answer. Am I missing something?

