Skip to content
This repository was archived by the owner on Nov 20, 2018. It is now read-only.

Commit 54f8004

Browse files
committed
Update build.cmd to match latest template
- aspnet/Universe#347 - `%KOREBUILD_VERSION%` doesn't work without this fix
1 parent dabe2e0 commit 54f8004

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

build.cmd

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,11 @@ IF NOT EXIST %NUGET_PATH% (
2828
copy %CACHED_NUGET% %NUGET_PATH% > nul
2929
)
3030

31+
SET KOREBUILD_DOWNLOAD_ARGS=
32+
IF NOT "%KOREBUILD_VERSION%"=="" (
33+
SET KOREBUILD_DOWNLOAD_ARGS=-version %KOREBUILD_VERSION%
34+
)
3135
IF NOT EXIST %KOREBUILD_FOLDER% (
32-
SET KOREBUILD_DOWNLOAD_ARGS=
33-
IF NOT "%KOREBUILD_VERSION%"=="" (
34-
SET KOREBUILD_DOWNLOAD_ARGS=-version %KOREBUILD_VERSION%
35-
)
36-
3736
%BUILD_FOLDER%\nuget.exe install KoreBuild-dotnet -ExcludeVersion -o %BUILD_FOLDER% -nocache -pre %KOREBUILD_DOWNLOAD_ARGS%
3837
)
3938

0 commit comments

Comments
 (0)