-
-
Notifications
You must be signed in to change notification settings - Fork 634
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cecil does not generate portable PDB checksum #610
Comments
I was just investigating snupkg support for my nuget libraries and ran into this too :( |
@jbevain Is this PR done, just waiting to be merged? |
Heh, no otherwise it would be merged :) The PR in its current state re-orders some internal implementation detail to write the debug symbols before writing the assembly as this requires computing the pdb checksum before writing it in the assembly. |
As a workaround for NuGet, and better than snupkg IMO, is to include the PDB in the main NuPkg. You can do that like this: |
@clairernovotny , currently I'm using embedded PDB |
@sakno that works too |
Looks like some Fody weavers cause issues with the portable PDB signatures, making nuget.org reject `.snupkg`s. Workaround seems to be to use `<DebugType>embedded</DebugType>` for now. See [cecil/#610](jbevain/cecil#610) for more info.
Works around jbevain/cecil#610 Using InlineIL.Fody messes up the pdb checksum which makes nuget.org consider the .snupkg to be invalid. Workaround this by including the pdb in the main .nupkg
Works around jbevain/cecil#610 Using InlineIL.Fody messes up the pdb checksum which makes nuget.org consider the .snupkg to be invalid. Workaround this by including the pdb in the main .nupkg
Snupgk seems to be unsupported by fody at the moment jbevain/cecil#610 ltrzesniewski/InlineIL.Fody#12
…nd thus publishing on nuget.org fails. To avoid, include pdb directly to nuget package. Likely cause is Fody (jbevain/cecil#610).
Currently, Cecil does not generate a
PdbChecksum
debug directory entry in the assembly it writes when it produces a portable PDB file.This entry is validated by the NuGet gallery when you try to submit a symbol package (
.snupkg
file), making it impossible to upload such packages for assemblies processed by Cecil.Here's the information needed to implement this feature:
PdbChecksum
entry specificationSystem.Reflection.Metadata
)I may try to implement this in the future unless someone else is interested. 😉
Related issue: ltrzesniewski/InlineIL.Fody#12
/cc @sakno
The text was updated successfully, but these errors were encountered: