We have an NAnt script that checks out from CVS and then runs MSBuild to publish the application. The problem is we have to remember to always increment the version in Visua
In the end I did this using NAnt xmlpoke, so for the version we end up with 20.0.dayofyear.hourminute - it is mostly unique across builds.
There is no need for custom tasks - and the newer version of MSBuild has a pokexml too, so it might work with that.