Skip to content

How to force gitversion to use SemVer 2.0 and not pad build number in NuGetVersionV2 #3645

Answered by HHobeck
tig asked this question in Q&A
Discussion options

You must be logged in to vote

Input of @arturcic

Better they use V6. This variable if I remember correctly was removed on V6 and there is only one nuget variable

I think the NuGetVersion variables are gone in v6. I would suggest to use SemVer variable instead. Please see the following example to see the supported variables:

https://github.com/GitTools/GitVersion/blob/main/src/GitVersion.Core.Tests/VersionCalculation/Approved/VariableProviderTests.ProvidesVariablesInContinuousDeploymentModeForStable.approved.txt

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by HHobeck
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants