Skip to content

Fix duplicate assembly name errors in crossgen outerloop merged runners#126173

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/fix-duplicate-assembly-name-error
Draft

Fix duplicate assembly name errors in crossgen outerloop merged runners#126173
Copilot wants to merge 2 commits intomainfrom
copilot/fix-duplicate-assembly-name-error

Conversation

Copy link
Contributor

Copilot AI commented Mar 26, 2026

Description

Crossgen outerloop builds fail because two pairs of test .csproj files share identical filenames within their merged runner scope:

  • baseservices/exceptions/: both COOL/finally.csproj and simple/finally.csproj → assembly name finally
  • GC/API/: both GCHandle/Target.csproj and WeakReference/Target.csproj → assembly name Target

MergedTestRunner.targets derives both the default assembly name and the extern alias from %(Filename), so identical filenames cause MSBuild conflict resolution to silently drop one reference. mergedrunner.targets catches this and errors. Only surfaces in outerloop because both pairs are CLRTestPriority=1.

Fix: Rename the conflicting .csproj files to produce unique assembly names and aliases:

  • COOL/finally.csprojCOOL/COOL_finally.csproj
  • GCHandle/Target.csprojGCHandle/GCHandle_Target.csproj

<Compile Include> paths are relative to the project directory and remain valid.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@dotnet-policy-service
Copy link
Contributor

Tagging subscribers to this area: @dotnet/runtime-infrastructure
See info in area-owners.md if you want to be subscribed.

…ners

Rename COOL/finally.csproj to COOL/COOL_finally.csproj and
GCHandle/Target.csproj to GCHandle/GCHandle_Target.csproj to resolve
assembly name collisions detected by mergedrunner.targets when
priority-1 tests are included in crossgen outerloop builds.

Agent-Logs-Url: https://github.com/dotnet/runtime/sessions/9c31d9a0-02f1-4ed7-99a9-29ac5c35734e

Co-authored-by: jtschuster <36744439+jtschuster@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix project with identical assembly name issue in tests Fix duplicate assembly name errors in crossgen outerloop merged runners Mar 26, 2026
Copilot AI requested a review from jtschuster March 26, 2026 23:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: No status
Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants