Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,11 @@ jobs:
- name: Create NuGet package
run: dotnet pack --configuration Release --no-build --output ${{ env.NuGetDirectory }}

# Publish the NuGet package as an artifact, so they can be used in the following jobs
# Publish the NuGet package as an artifact, so they can be used in the following jobs.
# Only .nupkg: symbols are embedded in the assembly (see Directory.Build.props), so no symbol
# package is produced. Were one ever added, it would have to be listed here too - `dotnet
# nuget push` only forwards a .snupkg that sits NEXT TO the .nupkg, and `*.nupkg` does not
# match `.snupkg`.
- uses: actions/upload-artifact@v7
with:
name: nuget
Expand Down
12 changes: 10 additions & 2 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,19 @@
</PropertyGroup>

<!-- Source Link -->
<!--
No IncludeSymbols/SymbolPackageFormat here on purpose. DotNet.ReproducibleBuilds sets
DebugType=embedded, so the portable PDB lives inside the assembly and no separate .pdb is ever
produced; asking for a snupkg then packs an empty one - FastComponents.1.0.0.snupkg shipped as
a 3.5 KB shell holding nothing but a nuspec. nuget.org rejects such a package outright ("The
package does not contain any symbol (.pdb) files"), which the release never hit only because
the artifact step uploads *.nupkg and that pattern does not match .snupkg, so the empty symbol
package never reached the deploy job. Embedded is the better trade anyway: consumers get
symbols and Source Link with no symbol-server configuration at all.
-->
<PropertyGroup>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
</PropertyGroup>

<!-- Deterministic builds -->
Expand Down
Loading