Skip to content

Support C# format strings in config #4156

Description

@asbjornu

It would be nice if GitVersion supported arbitrary C# format strings, so it was possible to create custom zero padded version number as such:

assembly-informational-format: '{Major}.{Minor}.{Patch}-{CommitsSinceVersionSource:0000}'

the format strings could also be used for other purposes, but zero padding is probably the most useful one.

Originally posted by @asbjornu in #4153 (comment)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions