mirror of
https://github.com/brutaldev/StrongNameSigner.git
synced 2026-04-25 11:26:04 +03:00
[GH-ISSUE #11] Feature request: Update .pdbs to match signed assemblies #7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Bringer128 on GitHub (Feb 27, 2015).
Original GitHub issue: https://github.com/brutaldev/StrongNameSigner/issues/11
Originally assigned to: @brutaldev on GitHub.
Currently signing assemblies will invalidate any debug symbols that were generated with them, making it impossible to debug using Visual Studio.
I've been able to get away with doing IL debugging using DILE so far, but it would be great to be able to debug against the actual source.
I'm interested in looking into this feature but I can't commit to a timeframe yet so I'm putting this issue here in case someone else feels up to the challenge. :)
@Bringer128 commented on GitHub (Feb 27, 2015):
It looks like Cecil might have the features needed:
https://johnhmarks.wordpress.com/2011/01/19/getting-mono-cecil-to-rewrite-pdb-files-to-enable-debugging/
https://github.com/jbevain/cecil/tree/master/symbols/pdb
https://github.com/jbevain/cecil/wiki/Debug-symbols
@brutaldev commented on GitHub (Feb 27, 2015):
If you already have the source and are building the project, why not sign the assemblies using Visual Studio during the build step?
I suppose if PDB files were released with a build of unsigned third party assemblies you may want to update the PDBs as well. In this scenario though it's unlikely you will be able to debug against the source code.
@bradphelan commented on GitHub (Apr 25, 2016):
To speed things up we don't let visual studio sign the files. What we have is an msbuild task that signs every assembly it finds in the build directory that does not currently have a strong name. This only occurs after the build is complete. This is faster than trying to sign everything found in the nuget packages directory before the build. We have found that some packages have large numbers of sub-directories containing assemblies that are only linked on the condition of obscure rules.
However now the problem is that as we are using brutal to sign our own app assemblies we lose the debugging info. I can trade you the below MSBuild script for adding in the debug info if it is not too much trouble.
and
@bradphelan commented on GitHub (Apr 27, 2016):
Ok I think I fixed the debug symbols as part of my pull request https://github.com/brutaldev/StrongNameSigner/pull/22
@brutaldev commented on GitHub (May 5, 2016):
PDB symbol reading and writing added to release 1.8.0.