Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support C# format strings in config #4156

Open
asbjornu opened this issue Aug 12, 2024 · 0 comments
Open

Support C# format strings in config #4156

asbjornu opened this issue Aug 12, 2024 · 0 comments

Comments

@asbjornu
Copy link
Member

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)

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

No branches or pull requests

2 participants