File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 88
88
<Message Importance="High" Text='%0A> "$(NuGetExe)" restore "src\System.Net.Http.Formatting.NetCore\packages.config" ...'
89
89
Condition=" '$(BuildPortable)' == 'true' " />
90
90
<Exec Command='"$(NuGetExe)" restore "src\System.Net.Http.Formatting.NetCore\packages.config" ^
91
- -PackagesDirectory packages -NonInteractive ^
91
+ -PackagesDirectory packages -DirectDownload -DisableParallelProcessing -NoCache - NonInteractive ^
92
92
-Verbosity quiet -ConfigFile .nuget\NuGet.Config'
93
93
Condition=" '$(BuildPortable)' == 'true' " />
94
94
<!-- 2. Restore SDK-style test projects because legacy test projects depend on TestCommon. -->
99
99
<!-- 3. Restore remaining legacy projects. -->
100
100
<Message Importance="High" Text='%0A> "$(NuGetExe)" restore "@(_NuGetPackagesAndSolutions)" ...' />
101
101
<Exec Command='"$(NuGetExe)" restore "%(_NuGetPackagesAndSolutions.Identity)" ^
102
- -PackagesDirectory packages -NonInteractive ^
102
+ -PackagesDirectory packages -DirectDownload -DisableParallelProcessing -NoCache - NonInteractive ^
103
103
-Verbosity quiet -ConfigFile .nuget\NuGet.Config' />
104
104
<Message Importance="High" Text='' />
105
105
</Target>
Original file line number Diff line number Diff line change @@ -38,6 +38,10 @@ if exist "%InstallDir%\MSBuild\15.0\Bin\MSBuild.exe" (
38
38
goto BuildFail
39
39
)
40
40
41
+ REM Use same NuGet configuration when using `Restore` target.
42
+ set " NUGET_PACKAGES = %CD% \packages"
43
+ set RESTORENOCACHE = true
44
+
41
45
if " %1 " == " " goto BuildDefaults
42
46
43
47
%MSBuild% Runtime.msbuild /m /nr:false /p:Platform=" Any CPU" /p:Desktop=true /v:M ^
You can’t perform that action at this time.
0 commit comments