Updated getversion.cmd to work with NuGet normalized versions.
This commit is contained in:
parent
b986342910
commit
834194cdb3
|
@ -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"
|
||||
)
|
Loading…
Reference in New Issue