-
Hi all, I am doing a v5 to v6 migration and things are not going well. I am using Azure yaml pipelines and trying to build my C# nuget packages, with the removal of NuGetVersionV2, my nuget version is a mess. Previously it would also create a 0 padded commit version, so we could have something like 9.0.8-0001 , where the 0001 is the number of commits, but now I just have 9.0.8--git-version.1+13, now nuget does not understand or accept the +13, so what is the correct way to deal with this now? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
The following example is public available (in the documentation of gitversion) and can be found under Reference -> Version Variables: {
"Major": 3,
"Minor": 22,
"Patch": 11,
"PreReleaseTag": "beta.99",
"PreReleaseTagWithDash": "-beta.99",
"PreReleaseLabel": "beta",
"PreReleaseLabelWithDash": "-beta",
"PreReleaseNumber": 99,
"WeightedPreReleaseNumber": 1099,
"BuildMetaData": 88,
"FullBuildMetaData": "99.Branch.release/3.22.11.Sha.28c853159a46b5a87e6cc9c4f6e940c59d6bc68a",
"MajorMinorPatch": "3.22.11",
"SemVer": "3.22.11-beta.99",
"AssemblySemVer": "3.22.11.0",
"AssemblySemFileVer": "3.22.11.0",
"InformationalVersion": "3.22.11-beta.99+88.Branch.release/3.022.011.Sha.28c853159a46b5a87e6cc9c4f6e940c59d6bc68a",
"FullSemVer": "3.22.11-beta.99+88",
"BranchName": "release/3.022.011",
"EscapedBranchName": "release-3.022.011",
"Sha": "28c853159a46b5a87e6cc9c4f6e940c59d6bc68a",
"ShortSha": "28c8531",
"VersionSourceSha": "28c853159a46b5a87e6cc9c4f6e940c59d6bc68a",
"CommitsSinceVersionSource": 7,
"CommitDate": "2021-12-31",
"UncommittedChanges": 0
} Maybe you need to use the Happy branching! |
Beta Was this translation helpful? Give feedback.
-
The problem is more with that the NuGetPreReleaseTagV2 and NuGetVersionV2 have been removed. The FullSemVer comes out as something like |
Beta Was this translation helpful? Give feedback.
The following example is public available (in the documentation of gitversion) and can be found under Reference -> Version Variables: