From 6a059daddcc028d4a2b70e5820f4e4b002e0af80 Mon Sep 17 00:00:00 2001 From: Jevan Saks Date: Sun, 16 Dec 2018 20:30:56 -0800 Subject: [PATCH] Update NugetWrapper.cmd to download nuget.exe from nuget.org and cache locally instead of using internal share (#94) --- tools/NugetWrapper.cmd | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tools/NugetWrapper.cmd b/tools/NugetWrapper.cmd index 18ebcf1c72..1bff077d75 100644 --- a/tools/NugetWrapper.cmd +++ b/tools/NugetWrapper.cmd @@ -3,6 +3,11 @@ setlocal set VisualStudioVersion=15.0 -\\edge-svcs\nuget\v4.6.2\NuGet.exe %* +if not exist %TEMP%\nuget.4.9.2.exe ( + echo Nuget.exe not found in the temp dir, downloading. + powershell -Command "& { Invoke-WebRequest https://dist.nuget.org/win-x86-commandline/v4.9.2/nuget.exe -outfile $env:TEMP\nuget.4.9.2.exe }" +) -exit /B %ERRORLEVEL% \ No newline at end of file +%TEMP%\nuget.4.9.2.exe %* + +exit /B %ERRORLEVEL%