Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link
Open
@NikolaMilosavljevic

Description

@NikolaMilosavljevic
Issue body actions

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 functionalityRelated to dotnet SDK containers functionalityuntriagedRequest triage from a team memberRequest 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

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.