Skip to content

Microsoft.DotNet.Cli.Utils.csproj is built twice causing PDB mismatch on some platforms #44033

Open
@NikolaMilosavljevic

Description

@NikolaMilosavljevic

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:

<MSBuild
Targets="Publish"
Projects="$(RepoRoot)/src/Containers/Microsoft.NET.Build.Containers/Microsoft.NET.Build.Containers.csproj"
Properties="Configuration=$(Configuration);PublishDir=$(OutputPath)/Containers/tasks/net472;TargetFramework=net472"
Condition="'$(OSName)' == 'win'" />

Original issue has relevant binlogs.

@baronfel, @omajid

Metadata

Metadata

Assignees

Labels

Area-ContainersRelated to dotnet SDK containers functionalityuntriagedRequest triage from a team member

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions