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%