Skip to content

Commit 5db6047

Browse files
committed
Do not restore in parallel by default
1 parent 80eb301 commit 5db6047

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Runtime.msbuild

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<StyleCopEnabled Condition=" '$(StyleCopEnabled)' == '' ">true</StyleCopEnabled>
1111
<BuildPortable Condition=" '$(BuildPortable)' == '' ">true</BuildPortable>
1212
<BuildInParallel Condition=" '$(BuildInParallel)' == '' And $(MSBuildNodeCount) &gt; 1 ">true</BuildInParallel>
13+
<RestoreInParallel Condition=" '$(RestoreInParallel)' == '' ">false</RestoreInParallel>
1314
<BuildInParallel Condition=" '$(BuildInParallel)' == '' ">false</BuildInParallel>
1415
<TestInParallel Condition=" '$(TestInParallel)' == '' ">false</TestInParallel>
1516
<TestResultsDirectory>$(MSBuildThisFileDirectory)bin\$(Configuration)\test\TestResults\</TestResultsDirectory>
@@ -93,7 +94,7 @@
9394
<!-- 2. Restore SDK-style test projects because legacy test projects depend on TestCommon. -->
9495
<Message Importance="High" Text='%0A&gt; dotnet restore "@(_ProjectsToRestore)"' />
9596
<MSBuild Projects="@(_ProjectsToRestore)" Targets="Restore"
96-
BuildInParallel="$(BuildInParallel)"
97+
BuildInParallel="$(RestoreInParallel)"
9798
Properties="Configuration=$(Configuration);CodeAnalysis=$(CodeAnalysis);StyleCopEnabled=$(StyleCopEnabled);VisualStudioVersion=$(VisualStudioVersion)" />
9899
<!-- 3. Restore remaining legacy projects. -->
99100
<Message Importance="High" Text='%0A&gt; "$(NuGetExe)" restore "@(_NuGetPackagesAndSolutions)" ...' />

0 commit comments

Comments
 (0)