How to create custom version format that do not include WeightedPreReleaseNumber #4671
webmutation
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am not able to create a configuration being on 6.4.0 or previous 5.11.1 that allows me to have a clean custom version
Running GitVersion 6.4.0 diagnostics...
{
"AssemblySemFileVer": "0.1.0.0",
"AssemblySemVer": "0.1.0.0",
"BranchName": "develop",
"BuildMetaData": null,
"CommitDate": "2025-09-04",
"CommitsSinceVersionSource": 13,
"EscapedBranchName": "develop",
"FullBuildMetaData": "Branch.develop.Sha.e002867aa403afb42c9c1d955791c28c747ed635",
"FullSemVer": "0.1.0-SNAPSHOT.13",
"InformationalVersion": "0.1.0-SNAPSHOT.13+Branch.develop.Sha.e002867aa403afb42c9c1d955791c28c747ed635",
"Major": 0,
"MajorMinorPatch": "0.1.0",
"Minor": 1,
"Patch": 0,
"PreReleaseLabel": "SNAPSHOT",
"PreReleaseLabelWithDash": "-SNAPSHOT",
"PreReleaseNumber": 13,
"PreReleaseTag": "SNAPSHOT.13",
"PreReleaseTagWithDash": "-SNAPSHOT.13",
"SemVer": "0.1.0-SNAPSHOT.13",
"Sha": "e002867aa403afb42c9c1d955791c28c747ed635",
"ShortSha": "e002867",
"UncommittedChanges": 0,
"VersionSourceSha": "",
"WeightedPreReleaseNumber": 13
}
Calculating semantic version...
Resolved version: 0.1.0-SNAPSHOT.13
I want the version to resolve simply to 0.1.0-SNAPSHOT no trailing numbers... I have tried a dozen different way to try and get this done, and the only way I would find was to post-process the version and trim it. Is there no native way to do this ?
Beta Was this translation helpful? Give feedback.
All reactions