mirror of
https://github.com/brutaldev/StrongNameSigner.git
synced 2026-04-25 11:26:04 +03:00
[GH-ISSUE #74] Use NuGet package, but no automatic signing of assemblies #63
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 @MarcelVersteeg on GitHub (Nov 2, 2022).
Original GitHub issue: https://github.com/brutaldev/StrongNameSigner/issues/74
Via a third-party NuGet package I obtain an unsigned assembly I need for my application. I want to use the StrongNameSigner to only sign this single assembly, so I added the StrongNameSigner NuGet package to my application's project. This makes in unnecessary for other people in my team to install the StrongNameSigner separately when building the projects.
However, by adding the StrongNameSigner NuGet package to my project, all assemblies in the target directory are automatically processed. Is there a way to disable this automatic processing, or to specify which assembly/assemblies I want to be processed via this automatic mechanism?
@brutaldev commented on GitHub (Nov 2, 2022):
Second example in the docs: https://github.com/brutaldev/StrongNameSigner#build-process
Example of targeting one package folder.
You can remove the other targets that are created in your project file that perform a full signing operation.
@MarcelVersteeg commented on GitHub (Nov 3, 2022):
My project file looks like this (kept out unnecessary details):
The target is executed as expected and signs the Vetris.ResourceLib.dll. However, when I look at the build output, there is also another task being executed that seems to try to sign all DLLs in my entire tree. This is what I see in the output (verbosity level "Normal"):
This
StrongNameSignerTargetis the target that is started automatically, and is not explicitly referenced in the project. @brutaldev How can I prevent this target to run?