mirror of
https://github.com/brutaldev/StrongNameSigner.git
synced 2026-04-25 03:16:10 +03:00
[GH-ISSUE #80] SDK style probjects supported? #64
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 @kirillkovalenko on GitHub (Dec 18, 2022).
Original GitHub issue: https://github.com/brutaldev/StrongNameSigner/issues/80
Originally assigned to: @brutaldev on GitHub.
I trying to use strong name signer tool to have a new 3rd party dependency assembly signed automatically. It seems that the tool finds in project dependencies referenced via
ProjectReference, but does not process those referenced viaPackageReferencetag. Is SDK style not supported or it's me doing something wrong?@brutaldev commented on GitHub (Dec 18, 2022):
@kirillkovalenko Do you have a basic sample project that I can test with?
@kirillkovalenko commented on GitHub (Dec 19, 2022):
I've created a simple project Sns80.zip
BTW, does your tool respect
AssemblyOriginatorKeyFileMsBuild property?@brutaldev commented on GitHub (Dec 19, 2022):
No, it's completely separate from any MSBuild specifics that project files could be using and you would need to pass you key file in the same way.
The problem you are experiencing with your project is related to PR #78
Package references go into cache directories such as
C:\Users\USER_NAME\.nuget\packages\ntapidotnet, the locations are explicitly excluded with the automatic build task because there are usually thousands of packages in there, none of which we want to traverse and check for each project's build unnecessarily.A solution now would be to sign explicitly using the console application with build events as described here: https://github.com/brutaldev/StrongNameSigner#build-process
You could also sign using the application, re-publish to your own local (or private NuGet repository) or just reference the final signed file directly. Ther project you are referring to is also open source so you could request from the developers to sign it or fork your own version, sign it and make another NuGet package for them.
You have a lot of options that make it not necessary to use this tool since it is intended as a last resort.
@kirillkovalenko commented on GitHub (Dec 20, 2022):
Thanks, I've already implemented this approach.