Skip to content

v0.1.2: portable DebugType so .snupkg actually ships symbols#4

Merged
StuartMeeks merged 1 commit intomainfrom
portable-debugtype-and-bump
May 3, 2026
Merged

v0.1.2: portable DebugType so .snupkg actually ships symbols#4
StuartMeeks merged 1 commit intomainfrom
portable-debugtype-and-bump

Conversation

@StuartMeeks
Copy link
Copy Markdown
Owner

@StuartMeeks StuartMeeks commented May 3, 2026

Summary

The previous combo — IncludeSymbols=true + SymbolPackageFormat=snupkg + DebugType=embedded — produces an empty .snupkg (no .pdb files, because debug info is embedded inside the .dll). nuget.org rejects empty symbol packages with HTTP 400. v0.1.1's .nupkg was published successfully, but the symbol upload failed.

Switching to <DebugType>portable</DebugType> produces a real .pdb next to the .dll. The .snupkg now 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 locally
  • dotnet pack — verified .snupkg now contains lib/net10.0/...pdb (21.7 KB total, vs ~2 KB empty)
  • CI green
  • After merge: tag v0.1.2, watch release.yml, verify nuget.org indexes both .nupkg and .snupkg

🤖 Generated with Claude Code

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>
@StuartMeeks StuartMeeks merged commit 862c84f into main May 3, 2026
4 checks passed
@StuartMeeks StuartMeeks deleted the portable-debugtype-and-bump branch May 3, 2026 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant