-
Notifications
You must be signed in to change notification settings - Fork 660
Description
After creating a new release branch. In this sample 0.7.0, Gitversion 4.0.0 beta 7 returns 0.7.0-beta0001 as NuGetVersionV2. Which is what I expected.
After committing a change to this branch the NuGetVersionV2 is not changed (actually not any version is changed). I expected 0.7.0-beta0002.
Why does Gitversion not increment the version?
What is the way to get the expected version (0.7.0-beta0002)?
Below the output after creating the 0.7.0 release and the version after a commit.
{
"Major":0,
"Minor":7,
"Patch":0,
"PreReleaseTag":"beta.1",
"PreReleaseTagWithDash":"-beta.1",
"PreReleaseLabel":"beta",
"PreReleaseNumber":1,
"BuildMetaData":0,
"BuildMetaDataPadded":"0000",
"FullBuildMetaData":"0.Branch.release/v0.7.0.Sha.7b7f627c237425b32d91270fe2724
2801bf8a509",
"MajorMinorPatch":"0.7.0",
"SemVer":"0.7.0-beta.1",
"LegacySemVer":"0.7.0-beta1",
"LegacySemVerPadded":"0.7.0-beta0001",
"AssemblySemVer":"0.7.0.0",
"FullSemVer":"0.7.0-beta.1+0",
"InformationalVersion":"0.7.0-beta.1+0.Branch.release/v0.7.0.Sha.7b7f627c23742
5b32d91270fe27242801bf8a509",
"BranchName":"release/v0.7.0",
"Sha":"7b7f627c237425b32d91270fe27242801bf8a509",
"NuGetVersionV2":"0.7.0-beta0001",
"NuGetVersion":"0.7.0-beta0001",
"NuGetPreReleaseTagV2":"beta0001",
"NuGetPreReleaseTag":"beta0001",
"CommitsSinceVersionSource":0,
"CommitsSinceVersionSourcePadded":"0000",
"CommitDate":"2016-10-10"
}
{
"Major":0,
"Minor":7,
"Patch":0,
"PreReleaseTag":"beta.1",
"PreReleaseTagWithDash":"-beta.1",
"PreReleaseLabel":"beta",
"PreReleaseNumber":1,
"BuildMetaData":1,
"BuildMetaDataPadded":"0001",
"FullBuildMetaData":"1.Branch.release/v0.7.0.Sha.bc30911b4e34183ebeaa58fdc8b41
ec381a682e0",
"MajorMinorPatch":"0.7.0",
"SemVer":"0.7.0-beta.1",
"LegacySemVer":"0.7.0-beta1",
"LegacySemVerPadded":"0.7.0-beta0001",
"AssemblySemVer":"0.7.0.0",
"FullSemVer":"0.7.0-beta.1+1",
"InformationalVersion":"0.7.0-beta.1+1.Branch.release/v0.7.0.Sha.bc30911b4e341
83ebeaa58fdc8b41ec381a682e0",
"BranchName":"release/v0.7.0",
"Sha":"bc30911b4e34183ebeaa58fdc8b41ec381a682e0",
"NuGetVersionV2":"0.7.0-beta0001",
"NuGetVersion":"0.7.0-beta0001",
"NuGetPreReleaseTagV2":"beta0001",
"NuGetPreReleaseTag":"beta0001",
"CommitsSinceVersionSource":1,
"CommitsSinceVersionSourcePadded":"0001",
"CommitDate":"2016-10-17"
}