Skip to content

[Feature Request] Allow creation of source file containing assembly version information #630

@Philo

Description

@Philo

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions