Closed MarcelVersteeg closed 1 year ago
I found the solution to this issue myself now. It is not an issue with the package. When adding the NuGet package to the project, exclude the build
asset from the dependency, by either adding that to the dependency properties, or by editing the project file like this:
<PackageReference Include="Brutal.Dev.StrongNameSigner" Version="3.1.1">
<ExcludeAssets>build</ExcludeAssets>
</PackageReference>
@MarcelVersteeg Thanks for the info, I hope this can be helpful to other and I might just add it to the documentation as well.
I have created issue #74 before about this. That issue was closed, but even after your response it is still reproducible. I have duplicated my remark to that issue here.
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
StrongNameSignerTarget
is the target that is started automatically, and is not explicitly referenced in the project. @brutaldev How can I prevent this target to run?