Skip to content
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

Stripping annotations also removes the portable PDB checksum #13

Closed
rdeago opened this issue Sep 29, 2020 · 1 comment
Closed

Stripping annotations also removes the portable PDB checksum #13

rdeago opened this issue Sep 29, 2020 · 1 comment
Assignees
Labels
bug [issue/PR] reports / solves a bug.

Comments

@rdeago
Copy link
Member

rdeago commented Sep 29, 2020

Description

Version: 1.1.0

When ExportAnnotations modifies an assembly, the portable PDB checksum disappears. This causes NuGet to reject uploaded symbol package files, as they fail the checksum test due to the fact that there is no checksum to begin with.

This is caused by jbevain/cecil#610 which is also affecting Fody and other projects.

Workarounds proposed so far include embedding debug information in assemblies, and including PDB files in .nupkg packages. None of these applies here, of course, because we cannot make such decisions on the behalf of users.

Configuration

Reproducible by referencing the ReSharper.ExportAnnotations package and setting the StripJetBrainsAnnotations property to true.

Regression?

Not a regression. It's always been this way, but it apparently never affected anyone until I tried to distribute symbol packages for the compiled tasks in Buildvana.Sdk.

Other information

A possible workaround could be: instead of stripping annotations for the assembly, delete it and re-run the Build target without the JETBRAINS_ANNOTATIONS constant. Some quick notes:

@rdeago rdeago added bug [issue/PR] reports / solves a bug. v1.x labels Sep 29, 2020
@rdeago rdeago self-assigned this Sep 29, 2020
rdeago referenced this issue in rdeago/ReSharper.ExportAnnotations Oct 3, 2020
@rdeago rdeago mentioned this issue Oct 3, 2020
12 tasks
@rdeago
Copy link
Member Author

rdeago commented Oct 3, 2020

Fixed by #14. Closing.

@rdeago rdeago closed this as completed Oct 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug [issue/PR] reports / solves a bug.
Projects
None yet
Development

No branches or pull requests

1 participant