2015-12-09 10:38:46 +00:00
|
|
|
@ECHO OFF
|
|
|
|
|
|
|
|
SET /P version=<"%~dp0version.txt"
|
|
|
|
|
|
|
|
FOR /F "tokens=1-4 delims=." %%V in ("%version%") DO (
|
2017-03-14 01:49:37 +00:00
|
|
|
::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")
|
2015-12-09 10:38:46 +00:00
|
|
|
SET "rcVersion=%%V,%%W,%%X,%%Y"
|
2017-03-14 01:49:37 +00:00
|
|
|
)
|