v0.1.2: portable DebugType so .snupkg actually ships symbols#4
Merged
StuartMeeks merged 1 commit intomainfrom May 3, 2026
Merged
v0.1.2: portable DebugType so .snupkg actually ships symbols#4StuartMeeks merged 1 commit intomainfrom
StuartMeeks merged 1 commit intomainfrom
Conversation
The previous combination — IncludeSymbols=true + SymbolPackageFormat= snupkg + DebugType=embedded — produces an empty .snupkg (no .pdb files because debug info lives inside the .dll), which nuget.org rejects with HTTP 400. The .nupkg pushed fine on v0.1.1 but the symbol upload failed. Switching to DebugType=portable produces a real .pdb alongside the .dll; the .snupkg now contains it, and nuget.org accepts the symbol upload. The .nupkg is also marginally smaller as a side effect (debug info no longer embedded in the dll). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The previous combo —
IncludeSymbols=true+SymbolPackageFormat=snupkg+DebugType=embedded— produces an empty.snupkg(no.pdbfiles, because debug info is embedded inside the.dll). nuget.org rejects empty symbol packages with HTTP 400. v0.1.1's.nupkgwas published successfully, but the symbol upload failed.Switching to
<DebugType>portable</DebugType>produces a real.pdbnext to the.dll. The.snupkgnow contains it; nuget.org accepts the symbol upload; consumers debugging into the library get sources via the nuget.org symbol server.This same fix is being rolled out across all four sibling repos (Splash / Auth / Auth.Providers / SelfUpdate) — see issue/PRs in those repos.
Test plan
dotnet test— 150 tests passing locallydotnet pack— verified.snupkgnow containslib/net10.0/...pdb(21.7 KB total, vs ~2 KB empty)v0.1.2, watch release.yml, verify nuget.org indexes both.nupkgand.snupkg🤖 Generated with Claude Code