MSBuild task that generates a .cs file with Mercurial current revision metadata of the project at build time.
You can use it for auto-versioning, ex. [AssemblyFileVersion("2.1" + HgMetalInfo.AssemblyVersionFileTemplate)].
MSBuild targets for updating Assembly version during build process. AssemblyInfo can be set by initializing MSBuild property $(AssemblyVersionNumber) before MSBuild target AssemblyVersionUpdate is called.