Skip to content

Embed PDBs in shipping assemblies - #3077

Merged
MihaZupan merged 1 commit into
dotnet:mainfrom
MihaZupan:embedded-debug
Nov 18, 2026
Merged

MihaZupan merged 1 commit into
dotnet:mainfrom
MihaZupan:embedded-debug

Conversation

@MihaZupan

Copy link
Copy Markdown
Member

Fixes #2911

YARP 2.3.0's symbols were never published to the Microsoft symbol serve, although 2.2.0's were. Symbols only get there if the release build is promoted to a public Maestro channel, which the release process doesn't guarantee. As a result, users can't step into YARP source when debugging the NuGet packages.

This PR sets DebugType=embedded, so the PDB ships inside the DLL in the package. Together with the existing Source Link and EmbedUntrackedSources settings, debugging works straight from the NuGet package. It doesn't depend on the symbol server or on any release pipeline step.

Arcade already embeds PDBs in local and PR builds and only switches to separate PDB files in official builds, so only official builds change. Arcade's SymStore.targets still converts embedded PDBs for symbol server publishing. Orleans and Aspire ship embedded PDBs the same way.

Note: IncludeSymbols=true is unchanged, so a .symbols.nupkg is still produced, now identical to the main package. I left it so Arcade's publishing inputs stay the same; it can be turned off in a follow-up.

(description mostly Copilot generated)

@MihaZupan MihaZupan added this to the YARP 3.0 milestone Nov 18, 2026
@MihaZupan MihaZupan self-assigned this Nov 18, 2026
@MihaZupan MihaZupan added the Type: Infrastructure Infrastructure work that does not affect the actual shipping code label Nov 18, 2026
@MihaZupan
MihaZupan enabled auto-merge (squash) November 18, 2026 08:54

@rosebyte rosebyte left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@MihaZupan
MihaZupan merged commit a9e7516 into dotnet:main Nov 18, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Infrastructure Infrastructure work that does not affect the actual shipping code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Debug symbols for releases

2 participants