TeamCity already patches the AssemblyInfo files. Once it does so, the rest of the build can be driven off them.