<RestoreOutputPath>$(BaseIntermediateOutputPath)</RestoreOutputPath>
<ProjectAssetsFile>$(RestoreOutputPath)\project.assets.json</ProjectAssetsFile>
+ <!--
+ Disable ResolveAssemblyReference cache. The packaging projects run in parallel and use MSBuild
+ tasks calling various targets, many of which use ResolveReferences. The parallel writes to the
+ cache conflict and cause build failures. Disable the cache to avoid this.
+
+ In the long term, the "base" project build (depproj as of writing) should lay out the files or
+ metadata in a way the other projects can consume. Gathering the information ahead of time
+ removes the benefit of a cache.
+ -->
+ <DisableRarCache>true</DisableRarCache>
+
<RestoreAllBuildRids>true</RestoreAllBuildRids>
</PropertyGroup>
<IgnoredReference Condition="'$(PackageTargetRuntime)' == ''" Include="DirectWriteForwarder" />
</ItemGroup>
- <!--
- Wait for Microsoft.NETCore.App pkgprojs to be done with netcoreapp.depproj, but don't take any
- dependency on the assets. ResolveAssemblyReference tasks running in parallel may try to write to
- netcoreapp.depprojAssemblyReference.cache, hit the other's lock, and fail.
- -->
- <ItemGroup>
- <WaitOnlyProjectReference Include="..\..\netcoreapp\pkg\legacy\*.pkgproj" />
- </ItemGroup>
-
<Target Name="GetNETCoreAppIgnoredReference" BeforeTargets="VerifyClosure">
<MSBuild
Projects="../../netcoreapp/src/netcoreapp.depproj"