Using /updateassemblyinfo true| will update the existing version information stored within either **/AssemblyInfo.cs or , however I think it would be useful to provide an option to actually create and populate it with assembly version information if the file does not exist.
GitVersion.exe /updateassemblyinfo VersionAssemblyInfo.cs
will:
- check for the existence of VersionAssemblyInfo.cs, if found will update existing version attributes
- if VersionAssemblyInfo.cs does not exist, create the file and add the version attributes to it
- Inspect the filename extension to .cs or .vb to determine whether the generated file should contain VB and C# code
In general a common/global assembly info file would not be committed to source control, and for large projects managing individual AssemblyInfo.* files would be a pain.
Thoughts?