Updated getversion.cmd to work with NuGet normalized versions.

This commit is contained in:
Jon Galloway 2017-03-13 18:49:37 -07:00
parent b986342910
commit 834194cdb3
1 changed files with 3 additions and 2 deletions

View File

@ -3,6 +3,7 @@
SET /P version=<"%~dp0version.txt"
FOR /F "tokens=1-4 delims=." %%V in ("%version%") DO (
SET "dottedVersion=%%V.%%W.%%X.%%Y"
::NuGet now normalizes versions, so need to remove build number if 0
IF %%Y EQU 0 (SET "dottedVersion=%%V.%%W.%%X") ELSE (SET "dottedVersion=%%V.%%W.%%X.%%Y")
SET "rcVersion=%%V,%%W,%%X,%%Y"
)
)