-
I'm currently trying to replicate a version from the past, if I checkout a version tag from the past in the CI pipeline. Unfortunately the output is different. Using the I already thought shortly about to perform a My current configuration looks like that: mode: Mainline
assembly-versioning-scheme: MajorMinor
assembly-file-versioning-scheme: MajorMinorPatchTag
major-version-bump-message: "^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\\([\\w\\s]*\\))?(!:|:.*\\n\\n((.+\\n)+\\n)?BREAKING CHANGE:\\s.+)"
minor-version-bump-message: "^(feat)(\\([\\w\\s]*\\))?:"
patch-version-bump-message: "^(build|chore|ci|docs|fix|perf|refactor|revert|style|test)(\\([\\w\\s]*\\))?:" Current output{
"Major": 1,
"Minor": 11,
"Patch": 0,
"PreReleaseTag": "-no-branch-.1",
"PreReleaseTagWithDash": "--no-branch-.1",
"PreReleaseLabel": "-no-branch-",
"PreReleaseLabelWithDash": "--no-branch-",
"PreReleaseNumber": 1,
"WeightedPreReleaseNumber": 1,
"BuildMetaData": null,
"BuildMetaDataPadded": "",
"FullBuildMetaData": "Branch.-no-branch-.Sha.a9c318a443614dad190a6240b123e77c5aa6cb36",
"MajorMinorPatch": "1.11.0",
"SemVer": "1.11.0--no-branch-.1",
"LegacySemVer": "1.11.0--no-branch-1",
"LegacySemVerPadded": "1.11.0--no-branch-0001",
"AssemblySemVer": "1.11.0.0",
"AssemblySemFileVer": "1.11.0.1",
"FullSemVer": "1.11.0--no-branch-.1",
"InformationalVersion": "1.11.0--no-branch-.1+Branch.-no-branch-.Sha.a9c318a443614dad190a6240b123e77c5aa6cb36",
"BranchName": "(no branch)",
"EscapedBranchName": "-no-branch-",
"Sha": "a9c318a443614dad190a6240b123e77c5aa6cb36",
"ShortSha": "a9c318a",
"NuGetVersionV2": "1.11.0--no-branch-0001",
"NuGetVersion": "1.11.0--no-branch-0001",
"NuGetPreReleaseTagV2": "-no-branch-0001",
"NuGetPreReleaseTag": "-no-branch-0001",
"VersionSourceSha": "a14ea3581969ff830ed01b8dac8496c8c532d676",
"CommitsSinceVersionSource": 1,
"CommitsSinceVersionSourcePadded": "0001",
"UncommittedChanges": 0,
"CommitDate": "2023-02-07"
} Current with
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
To be able to fully replicate the same version number, you would have to do the following:
Please try that and report back your results. |
Beta Was this translation helpful? Give feedback.
To be able to fully replicate the same version number, you would have to do the following:
git checkout <branch>
andgit reset --hard <commit-id>
to force<branch>
back in time to point to<commit-id>
.<commit-id>
was built.Please try that and report back your results.