Skip to content

Commit f086bb0

Browse files
release: switch to embedded debug info, drop snupkg push
nuget.org's snupkg-validation rejected every symbol package this repo pushed (the .nupkg lands fine; the .snupkg flatcontainer URL returns 404 after async validation). Root cause: side-PDBs from build tools (Grpc.Tools / Confluent.Kafka / etc.) land in the snupkg but not the nupkg, so the PDB<->DLL match check fails. Fix mirrors the Bowire-monorepo convention: Directory.Build.props DebugType=portable + IncludeSymbols=true + SymbolPackageFormat=snupkg -> DebugType=embedded + IncludeSymbols=false. PDB lands inside the main DLL, SourceLink step-through stays available. .github/workflows/release.yml dotnet nuget push *.snupkg step removed.
1 parent 1e007df commit f086bb0

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,10 @@ jobs:
5555
if: ${{ !contains(github.ref, '-rc') && env.NUGET_API_KEY != '' }}
5656
env:
5757
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
58+
# No separate .snupkg push — Directory.Build.props uses
59+
# DebugType=embedded so debug info ships inside the .nupkg.
5860
run: |
5961
dotnet nuget push "artifacts/packages/*.nupkg" --source https://api.nuget.org/v3/index.json --api-key "$NUGET_API_KEY" --skip-duplicate
60-
dotnet nuget push "artifacts/packages/*.snupkg" --source https://api.nuget.org/v3/index.json --api-key "$NUGET_API_KEY" --skip-duplicate
6162
6263
- name: Create GitHub Release
6364
uses: softprops/action-gh-release@v3

Directory.Build.props

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,14 @@
6161
<PropertyGroup>
6262
<PublishRepositoryUrl>true</PublishRepositoryUrl>
6363
<EmbedUntrackedSources>true</EmbedUntrackedSources>
64-
<DebugType>portable</DebugType>
65-
<IncludeSymbols>true</IncludeSymbols>
66-
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
64+
<!-- Embedded debug info: PDB ships inside the assembly itself,
65+
so SourceLink + step-through debugging work without a
66+
separate .snupkg. Matches the Bowire-monorepo convention and
67+
sidesteps nuget.org's snupkg-validation chain (which
68+
consistently rejected our snupkgs because of side-PDBs from
69+
build tools like Grpc.Tools / Confluent.Kafka). -->
70+
<DebugType>embedded</DebugType>
71+
<IncludeSymbols>false</IncludeSymbols>
6772
</PropertyGroup>
6873

6974
<ItemGroup Condition="'$(IsPackable)' != 'false'">

0 commit comments

Comments
 (0)