Skip to content

Commit 54fe758

Browse files
committed
build-common/common.xml: Also SP-versions must use a completely numeric version on Nuget, otherwise they are misinterpreted as pre-releases.
1 parent 8f7f392 commit 54fe758

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

build-common/common.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,11 @@
105105
106106
string qualifier = matches.Groups["qualifier"].Value;
107107
108+
// For official releases we must use a completely numeric version.
109+
// For pre-releases, the alphanumerics should be retained, to make Nuget
110+
// understand it's a pre-release.
108111
if (qualifier == "GA") return ToNumericVersion(version);
112+
if (qualifier == "SP") return ToNumericVersion(version);
109113
110114
return String.Concat(
111115
String.Join(".", new string[] { matches.Groups["major"].Value, matches.Groups["minor"].Value, matches.Groups["build"].Value }),

0 commit comments

Comments
 (0)