[GH-ISSUE #69] It seems not working in sdk-style project with third-part packages #59

Closed
opened 2026-02-25 21:30:34 +03:00 by kerem · 6 comments
Owner

Originally created by @songjiefa on GitHub (Apr 19, 2022).
Original GitHub issue: https://github.com/brutaldev/StrongNameSigner/issues/69

Originally assigned to: @brutaldev on GitHub.

I created a wpf project with sdk-style .net 4.8, then, I reference un strong name package and strong name signer, when I build it, it shows "no assembly paths were provided" and it works fine in ms-build project

Originally created by @songjiefa on GitHub (Apr 19, 2022). Original GitHub issue: https://github.com/brutaldev/StrongNameSigner/issues/69 Originally assigned to: @brutaldev on GitHub. I created a wpf project with sdk-style .net 4.8, then, I reference un strong name package and strong name signer, when I build it, it shows "no assembly paths were provided" and it works fine in ms-build project
kerem closed this issue 2026-02-25 21:30:34 +03:00
Author
Owner

@brutaldev commented on GitHub (Apr 19, 2022):

@songjiefa please provide a sample project so we can reproduce the problem.

<!-- gh-comment-id:1102371961 --> @brutaldev commented on GitHub (Apr 19, 2022): @songjiefa please provide a sample project so we can reproduce the problem.
Author
Owner

@songjiefa commented on GitHub (Apr 19, 2022):

Here is my sample coede: https://github.com/songjiefa/TestStrongNameSinger

<!-- gh-comment-id:1102706782 --> @songjiefa commented on GitHub (Apr 19, 2022): Here is my sample coede: https://github.com/songjiefa/TestStrongNameSinger
Author
Owner

@brutaldev commented on GitHub (Apr 22, 2022):

@songjiefa Apologies for the delay, I'm battling with COVID at the moment so my head hasn't been in code for a while...
The link you provided gets to a 404 page, any other way you can get me a sample project to reproduce the problem with?

<!-- gh-comment-id:1106124553 --> @brutaldev commented on GitHub (Apr 22, 2022): @songjiefa Apologies for the delay, I'm battling with COVID at the moment so my head hasn't been in code for a while... The link you provided gets to a 404 page, any other way you can get me a sample project to reproduce the problem with?
Author
Owner

@songjiefa commented on GitHub (Apr 23, 2022):

@brutaldev
These is not urgent, take care.
I'm sorry for the repository default visible option is private, now I have changed repository visibility to public now.

<!-- gh-comment-id:1107190594 --> @songjiefa commented on GitHub (Apr 23, 2022): @brutaldev These is not urgent, take care. I'm sorry for the repository default visible option is private, now I have changed repository visibility to public now.
Author
Owner

@brutaldev commented on GitHub (Apr 25, 2022):

@songjiefa The automatic build task uses the reference list to determine which dependencies to sign. Your SDK project has package references but no project references so it does not find anything to sign. To overcome this you need to add a build target yourself: https://github.com/brutaldev/StrongNameSigner/blob/master/README.md#dealing-with-dependencies

In SdkStyle-Failed.csproj add the following pre-build target:

<Target Name="PreBuild" BeforeTargets="PreBuildEvent">
    <Exec ContinueOnError="false" 
          Command="&quot;$(StrongNameSignerDirectory)StrongNameSigner.Console.exe&quot; -in &quot;$(UserProfile)\.nuget\packages\ardalis.guardclauses&quot;" />
</Target>
<!-- gh-comment-id:1108552651 --> @brutaldev commented on GitHub (Apr 25, 2022): @songjiefa The automatic build task uses the reference list to determine which dependencies to sign. Your SDK project has package references but no project references so it does not find anything to sign. To overcome this you need to add a build target yourself: https://github.com/brutaldev/StrongNameSigner/blob/master/README.md#dealing-with-dependencies In `SdkStyle-Failed.csproj` add the following pre-build target: ``` <Target Name="PreBuild" BeforeTargets="PreBuildEvent"> <Exec ContinueOnError="false" Command="&quot;$(StrongNameSignerDirectory)StrongNameSigner.Console.exe&quot; -in &quot;$(UserProfile)\.nuget\packages\ardalis.guardclauses&quot;" /> </Target> ```
Author
Owner

@songjiefa commented on GitHub (Apr 25, 2022):

Thank you, it works for me!
Because just just see it write "../packages/xxx" in readme file, and I dont't know the path about $(UserProfile).
Anyway, thanks again, and take care!!!

<!-- gh-comment-id:1108700729 --> @songjiefa commented on GitHub (Apr 25, 2022): Thank you, it works for me! Because just just see it write "../packages/xxx" in readme file, and I dont't know the path about $(UserProfile). Anyway, thanks again, and take care!!!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/StrongNameSigner#59
No description provided.