mirror of
https://github.com/brutaldev/StrongNameSigner.git
synced 2026-04-25 11:26:04 +03:00
[GH-ISSUE #14] Update InternalsVisibleTo to prevent exceptions at runtime #12
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 @GeertvanHorrik on GitHub (May 19, 2015).
Original GitHub issue: https://github.com/brutaldev/StrongNameSigner/issues/14
Originally assigned to: @brutaldev on GitHub.
Some resigned assemblies use InternalsVisibleTo. This causes runtime exceptions as you can read here:
https://catelproject.atlassian.net/browse/CTL-653?focusedCommentId=19053&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-19053
Details:
@brutaldev commented on GitHub (May 19, 2015):
InternalsVisibleToattributes are re-written with the new signed assembly public keys as of version 1.4.2. InvalidInternalsVisibleToattributes are also removed as of version 1.4.4 which is the problem described in the exception above. The current version is 1.4.5.To ensure this error does not occur, update StrongNameSigner to at least version 1.4.4 which will remove any
InternalsVisibleToattributes that were not updated with reference public keys after signing.@brutaldev commented on GitHub (May 19, 2015):
Please note that the invalid references will only be removed from assemblies that are signed by StrongNameSigner.
In the attached zip file from the link you sent, Catel.Core.dll and Catel.MVVM.dll are already signed (with invalid
InternalsVisibleTostill in place). If you try to process these through the tool again, nothing will happen because they already have strong-name signatures and will not be modified.Please re-sign the original files with version 1.4.4 or higher to have the
InternalsVisibleToattributes correctly removed.@GeertvanHorrik commented on GitHub (May 20, 2015):
Thanks for all the info, will let them know.