Skip to content

Commit

Permalink
Update NugetWrapper.cmd to download nuget.exe from nuget.org and cach…
Browse files Browse the repository at this point in the history
…e locally instead of using internal share (#94)
  • Loading branch information
jevansaks authored Dec 17, 2018
1 parent 4b3b5ac commit 6a059da
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tools/NugetWrapper.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -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%
%TEMP%\nuget.4.9.2.exe %*

exit /B %ERRORLEVEL%

0 comments on commit 6a059da

Please sign in to comment.