-
Notifications
You must be signed in to change notification settings - Fork 662
Closed
Milestone
Description
VariableProvider resets the CommitsSinceTag:
// For continuous deployment the commits since tag gets promoted to the pre-release number
semanticVersion.PreReleaseTag.Number = semanticVersion.BuildMetaData.CommitsSinceTag;
semanticVersion.BuildMetaData.CommitsSinceTag = null;
So the AssemblySemVer will never have the right last number?
- Why is it reset to null? Am I not understand the VersioningMode correctly?
- A possible fix would be this change in AssemblyVersionsGenerator:
return string.Format("{0}.{1}.{2}.{3}", sv.Major, sv.Minor, sv.Patch, sv.BuildMetaData.CommitsSinceTag ?? sv.PreReleaseTag.Number ?? 0);
Metadata
Metadata
Assignees
Labels
No labels