Skip to content

Commit 43bf870

Browse files
authored
Disable parallel restore for BuildPass2 projects (#65954)
1 parent a6285e2 commit 43bf870

2 files changed

Lines changed: 14 additions & 6 deletions

File tree

eng/Build.props

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,20 @@
9494
<!-- Projects to build in .NET product build pass 2 -->
9595
<When Condition="'$(DotNetBuildPass)' == '2'">
9696
<ItemGroup Condition=" '$(DotNetBuild)' == 'true' AND '$(TargetOsName)' == 'win' AND '$(TargetArchitecture)' == 'x64' ">
97-
<ProjectToBuild Include="$(RepoRoot)src\Installers\Windows\WindowsHostingBundle\WindowsHostingBundle.wixproj" BuildStep="bp2" DotNetBuildPass="$(DotNetBuildPass)" AdditionalProperties="Platform=x86" />
98-
<ProjectToBuild Include="$(RepoRoot)src\Servers\IIS\IntegrationTesting.IIS\src\Microsoft.AspNetCore.Server.IntegrationTesting.IIS.csproj" BuildStep="bp2" DotNetBuildPass="$(DotNetBuildPass)" />
99-
<ProjectToBuild Include="$(RepoRoot)src\SiteExtensions\LoggingAggregate\src\Microsoft.AspNetCore.AzureAppServices.SiteExtension\Microsoft.AspNetCore.AzureAppServices.SiteExtension.csproj" BuildStep="bp2" DotNetBuildPass="$(DotNetBuildPass)" />
97+
<ProjectToBuild Include="$(RepoRoot)src\Installers\Windows\WindowsHostingBundle\WindowsHostingBundle.wixproj"
98+
BuildStep="bp2"
99+
DotNetBuildPass="$(DotNetBuildPass)"
100+
AdditionalProperties="Platform=x86" />
101+
<ProjectToBuild Include="$(RepoRoot)src\Servers\IIS\IntegrationTesting.IIS\src\Microsoft.AspNetCore.Server.IntegrationTesting.IIS.csproj"
102+
BuildStep="bp2"
103+
DotNetBuildPass="$(DotNetBuildPass)" />
104+
<ProjectToBuild Include="$(RepoRoot)src\SiteExtensions\LoggingAggregate\src\Microsoft.AspNetCore.AzureAppServices.SiteExtension\Microsoft.AspNetCore.AzureAppServices.SiteExtension.csproj"
105+
BuildStep="bp2"
106+
DotNetBuildPass="$(DotNetBuildPass)" />
107+
</ItemGroup>
108+
<!-- Disable parallel restore for all pass-2 projects to mitigate https://github.com/dotnet/dotnet/issues/4558 -->
109+
<ItemGroup>
110+
<ProjectToBuild Update="@(ProjectToBuild)" RestoreInParallel="false" />
100111
</ItemGroup>
101112
</When>
102113
<Otherwise>

src/Installers/Windows/WindowsHostingBundle/WindowsHostingBundle.wixproj

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@
1212
<SchemaVersion>2.0</SchemaVersion>
1313
<!-- We import D.B.T ourselves in this file -->
1414
<ImportDirectoryBuildTargets>false</ImportDirectoryBuildTargets>
15-
<!-- Should mitigate https://github.com/dotnet/dotnet/issues/4558 -->
16-
<RestoreDisableParallel>true</RestoreDisableParallel>
17-
1815
<!-- Namespace used to generate stable UUID3 GUIDs for MSI ProductCode, etc. DO NOT CHANGE THIS. -->
1916
<NamespaceGuid>$(HostingBundleNamespaceGuid)</NamespaceGuid>
2017

0 commit comments

Comments
 (0)