Skip to content

Does GitHub Packages support Nuget Symbol Packages (.snupkg)? #38678

Discussion options

You must be logged in to vote

It's been a while since I looked into this but after some digging I discovered that GitHub does not support Nuget Symbols Packages (forget exactly where I saw that as it's been a while).

I was however able to work around this by using Source Link (https://learn.microsoft.com/en-us/dotnet/standard/library-guidance/sourcelink). The trick is to embed the symbols file (.pdb) in the DLL itself instead of trying to use a separate file/package. I was able to accomplish this with the following two lines of code in the project file:

<DebugType>Embedded</DebugType>
<IncludeSymbols>true</IncludeSymbols>

You'll also need to include a package reference to Source Link. You can find more details here: h…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@DavidThompsonWG
Comment options

@cjoergensen
Comment options

@dmstrat
Comment options

Comment options

You must be logged in to vote
1 reply
@dmstrat
Comment options

Answer selected by cjoergensen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Packages Host your dependencies, libraries, and production-ready code, right from your repository
5 participants