I would like to be able to specify the version number for all assemblies to be generated during a build as a MSBuild command argument like this:
MSBuild.exe /p:version=5.4.3.0
I have looked over AssemblyInfoTask but it does not seem to me like a good solution in this case.
I use the AssemblyInfo task as you describe in your comment all the time.
The VersionNumber value is passed from outside the MSBuild project file exactly as you describe:
We use the BeforeBuild target to ensure the AssemblyInfo.cs files all get worked on before the build starts. Is this not what you want?