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

How can I debug an assembly that was assigned a strong name by StrongNamer? #55

Open
samuel-knutson opened this issue Apr 8, 2021 · 1 comment

Comments

@samuel-knutson
Copy link

I am referencing a library in my project. I have a dll and pdb for the library, so I can debug the library fine without StrongNamer. But once I add a reference to StrongNamer (to sign the library), I can no longer debug the library. When I check the Debug Modules, it says "Binary was not built with debug information."

Is there any way to debug a referenced assembly while also referencing StrongNamer?

Note: I also posted this question to StackOverflow.

@ericstj
Copy link

ericstj commented Nov 3, 2022

Seems like StrongNamer should be able to rewrite the symbols too. This seems to be how the linker does it: https://github.com/dotnet/linker/blob/93de7209f008e297770e5b76ec43a84e7e88a131/src/linker/Linker.Steps/OutputStep.cs#L205-L223

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants