Description
This issue is causing a failure in source-build, on s390x platform. On other platforms, i.e. x64, there is no PDB mismatch at the moment, but that can happen at any time with a change in compiler or other toolset dependency.
Each project should only be built once. Microsoft.DotNet.Cli.Utils.csproj
gets built the second time, as a reference in Microsoft.NET.Build.Containers.csproj
project.
According to @rainersigwald (dotnet/source-build#4150 (comment)) this happens because GenerateLayout.targets
is calling the publish with an additional PublishDir
global property that breaks it out from the "normal" reference and causes project to be built again:
sdk/src/Layout/redist/targets/GenerateLayout.targets
Lines 215 to 219 in e89072b
Original issue has relevant binlogs.