Versioning Nightly Builds with NAnt and CC.Net

I've been trying to set up a continuous integration environment using NAnt, and CC.Net, but I did'nt know the best option to synchonize the AssemblyVersion.cs, the CC Label, and the versions tasks of NAnt. This article https://bitarray.co.uk/marc/archive/2004/08/17/273.aspx proposes a very  elegant solution for this problem