Skip to content

Add ability to specify how AssemblyVersion is set. #314

@dazinator

Description

@dazinator

I noticed that when setting the AssemblyVersion attribute, only the Major and Minor are used.

I have updated the wiki to reflect that and why it does it (as I can guess): https://github.com/ParticularLabs/GitVersion/wiki/MSBuild-Task-Usage

However, in certain scenarios, like mine for instance, where the assembly is registered in the GAC, it may be desirable for them to have the AssemblyVersion set with the full version number i.e Major.Minor.Patch.

I think it would be nice if some command line paramater could be added so that the format could be specified for setting this attribute.

i.e something like:

/updateassemblyinfo true /assemblyversionformat MajorMinorPatch

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