Skip to content

Commit 4b9a900

Browse files
jlaanstrakennykerr
andauthored
Dynamically download nuget.exe (#505)
Co-authored-by: Kenny Kerr <[email protected]>
1 parent 6a08dd4 commit 4b9a900

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.nuget
12
.vscode
23
.vs
34
*.user

build_test_all.cmd

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,12 @@ if "%target_platform%"=="" set target_platform=x64
88
if "%target_configuration%"=="" set target_configuration=Release
99
if "%target_version%"=="" set target_version=1.2.3.4
1010

11-
call nuget restore cppwinrt.sln
12-
call nuget restore natvis\cppwinrtvisualizer.sln
13-
call nuget restore test\nuget\NugetTest.sln
11+
if not exist ".\.nuget" mkdir ".\.nuget"
12+
if not exist ".\.nuget\nuget.exe" powershell -Command "Invoke-WebRequest https://www.nuget.org/nuget.exe -OutFile .\.nuget\nuget.exe"
13+
14+
call .nuget\nuget.exe restore cppwinrt.sln"
15+
call .nuget\nuget.exe restore natvis\cppwinrtvisualizer.sln
16+
call .nuget\nuget.exe restore test\nuget\NugetTest.sln
1417

1518
call msbuild /m /p:Configuration=%target_configuration%,Platform=%target_platform%,CppWinRTBuildVersion=%target_version% cppwinrt.sln /t:fast_fwd
1619

nuget.exe

-3.77 MB
Binary file not shown.

0 commit comments

Comments
 (0)