I would much rather taking advantage of the tools Visual Studio provides. If you have a continuous building in place, then you might as well use MSBUILD itself from the command line with a Custom MSBUILD TASK. For more infrmation and background on the concept, please refer to this blog:
custom assembly versioning with vs 2010