aspect-injector icon indicating copy to clipboard operation
aspect-injector copied to clipboard

Feature: Provide debug symbols with NuGet package

Open neparij opened this issue 2 years ago • 2 comments

Describe the solution you'd like Symbols package (snupkg) provided for NuGet. This way all dependant packages can use it while signing itself.

Additional context There is no PDB Metadata for AspectInjector.Broker library at the moment. Screenshot 2023-01-31 at 12 51 33

neparij avatar Jan 31 '23 08:01 neparij

Hey @neparij , I didn't know signing requires PDB files. Would it be enough if I add the PDB into main package or it has to be snupkg?

pamidur avatar Jan 31 '23 09:01 pamidur

Hey @neparij , I didn't know signing requires PDB files. Would it be enough if I add the PDB into main package or it has to be snupkg?

For example, you can run dotnet pack command with the --include-symbols argument. After symbols was created dotnet nuget push command should attach generated .snupkg files as well. Don't forget to add <SymbolPackageFormat>snupkg</SymbolPackageFormat> to your PropertyGroup in csproj Also, I recommend using Microsoft.SourceLink with github adaptor (Clarifying README provided on their repository)

neparij avatar Feb 01 '23 06:02 neparij