mirror of
https://github.com/brutaldev/StrongNameSigner.git
synced 2026-04-25 11:26:04 +03:00
[GH-ISSUE #60] Cannot strong-name Hangfire.Core & Hangfire.SqlServer #53
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 @achimismaili on GitHub (Apr 7, 2020).
Original GitHub issue: https://github.com/brutaldev/StrongNameSigner/issues/60
I am trying to sign Hangfire.Core, but the tool says, that it is already strong named.
Nevertheless, there is still no PublicKeyToken available. See console output:
But after this signing, the public key is still null --> PublicKeyToken=null
From my understanding, "strong naming" means, that there must be a key available.
I was also not able to sign the dll in the nuget package 'Hangfire.SqlServer' for net45 (packages\Hangfire.SqlServer.1.6.21\lib\net45\Hangfire.SqlServer.dll)
@achimismaili commented on GitHub (Apr 7, 2020):
Sorry, maybe I do not understand the strong-name-signer solution enough.
I guess it does much more than what I expected ...
When I am running builds, Visual studio had automatically built the dlls in the bin folder with strong names, so there is no need to manually implement any pre build commands in visual studio manually?!
So, the nuget package also automatically adds this functionality, that all unsigned assemblys are signed, just when adding the nuget package?
Hm, then I am still not sure, why it says, that the dll in the packages folder is already signed...?
Maybe just some explanation would be useful here, then the issue can be closed ...
@brutaldev commented on GitHub (Apr 7, 2020):
If an assembly is already signed then any referenced assemblies it has will not be attempted (it's cached as well). You need remove any signed assemblies (just do a VS clean) which will pick up the additional packages that are referenced such as
Hangfire.SqlServer. With the latest version you do not need to do anything, just add the package and it will use the reference list to do the signing. If you change the reference list you will need to clean in order to sign again since a normal build would be incremental and existing signed files would still be in the output directory.@achimismaili commented on GitHub (Apr 8, 2020):
Thank you!
Awesome solution! 💃