Skip to content

Ignore DuplicateRootAssembly during debug builds. #124970

Open
mrvoorhe wants to merge 1 commit intodotnet:mainfrom
Unity-Technologies:linker-fix-test-failure-during-debug-build
Open

Ignore DuplicateRootAssembly during debug builds. #124970
mrvoorhe wants to merge 1 commit intodotnet:mainfrom
Unity-Technologies:linker-fix-test-failure-during-debug-build

Conversation

@mrvoorhe
Copy link
Contributor

It will trigger a Debug.Assert leading to a failure.

Copilot AI review requested due to automatic review settings February 27, 2026 14:39
@mrvoorhe mrvoorhe requested a review from sbomer as a code owner February 27, 2026 14:39
@mrvoorhe
Copy link
Contributor Author

@sbomer please take a look

@github-actions github-actions bot added the area-Tools-ILLink .NET linker development as well as trimming analyzers label Feb 27, 2026
@dotnet-policy-service dotnet-policy-service bot added linkable-framework Issues associated with delivering a linker friendly framework community-contribution Indicates that the PR has been added by a community member labels Feb 27, 2026
@dotnet-policy-service
Copy link
Contributor

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

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR prevents the DuplicateRootAssembly test from running in DEBUG builds to avoid triggering a Debug.Assert that would cause test failures. The test case is designed to validate duplicate root assembly handling by passing the same assembly via different paths, which triggers assertions in debug-enabled builds.

Changes:

  • Conditionally skip DuplicateRootAssembly test in DEBUG builds using #if DEBUG preprocessor directive

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-Tools-ILLink .NET linker development as well as trimming analyzers community-contribution Indicates that the PR has been added by a community member linkable-framework Issues associated with delivering a linker friendly framework

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants