From edd1f7a0d030d8183d370955462f281247eef339 Mon Sep 17 00:00:00 2001 From: Doug Bunting Date: Wed, 24 Feb 2016 11:16:29 -0800 Subject: [PATCH] Update template's `build.cmd` to match best of our repo's - #347 - `%KOREBUILD_VERSION%` doesn't work without this fix Will apply accross the repos once this is approved. --- build-template-dotnet/build.cmd | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/build-template-dotnet/build.cmd b/build-template-dotnet/build.cmd index 65fb3e3353..95b049cf63 100644 --- a/build-template-dotnet/build.cmd +++ b/build-template-dotnet/build.cmd @@ -28,12 +28,11 @@ IF NOT EXIST %NUGET_PATH% ( copy %CACHED_NUGET% %NUGET_PATH% > nul ) +SET KOREBUILD_DOWNLOAD_ARGS= +IF NOT "%KOREBUILD_VERSION%"=="" ( + SET KOREBUILD_DOWNLOAD_ARGS=-version %KOREBUILD_VERSION% +) IF NOT EXIST %KOREBUILD_FOLDER% ( - SET KOREBUILD_DOWNLOAD_ARGS= - IF NOT "%KOREBUILD_VERSION%"=="" ( - SET KOREBUILD_DOWNLOAD_ARGS=-version %KOREBUILD_VERSION% - ) - %BUILD_FOLDER%\nuget.exe install KoreBuild-dotnet -ExcludeVersion -o %BUILD_FOLDER% -nocache -pre %KOREBUILD_DOWNLOAD_ARGS% )