Skip to content

Fix duplicate browser library-test publish symbols - #135619

Merged
akoeplinger merged 1 commit into
dotnet:mainfrom
akoeplinger:fix-browser-pdb-publish
Oct 12, 2026
Merged

akoeplinger merged 1 commit into
dotnet:mainfrom
akoeplinger:fix-browser-pdb-publish

Conversation

@akoeplinger

@akoeplinger akoeplinger commented Oct 12, 2026 •

Copy link
Copy Markdown
Member

Fix NETSDK1152 when browser test publishing retains project-reference PDBs alongside runtime-pack PDBs. Use symbols matching the selected DLLs, preserving nested paths and existing symbols when no sibling PDB exists.

The net12 retarget exposed this because its bootstrap SDK lacks net12 pruning data: transitive library project references remain, whereas net11 prunes them. The fix is TFM-independent; publish symbols should match the selected DLLs regardless of how overlapping inputs arise.

Validated with target edge cases on main and Mono/CoreCLR/EAT browser builds plus linked publishing on net12-retarget. Windows execution and a full main-branch browser build were not run.

Note

Prepared with GitHub Copilot.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).
13 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

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

Replace conflicting project-reference PDBs with the selected assemblies' adjacent symbols, matching by publication path. Preserve linked and nested output paths, unrelated symbols, and existing symbols when no adjacent PDB is available. Keep duplicate publication checks enabled.

Co-authored-by: Copilot <[email protected]>
Copilot-Session: aab39968-c93b-478a-acee-e9f7b2eefc26
@akoeplinger
akoeplinger force-pushed the fix-browser-pdb-publish branch from 3e86fd4 to a0f47b9 Compare October 12, 2026 09:07
@akoeplinger
akoeplinger enabled auto-merge (squash) October 12, 2026 09:56
@akoeplinger
akoeplinger merged commit 45c4eaf into dotnet:main Oct 12, 2026
48 checks passed
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Oct 14, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 14, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants