Skip to content

Support C# format strings in config #4156

Open
@asbjornu

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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions