[GH-ISSUE #33] Incompattible with PackageReference #29

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

Originally created by @GieltjE on GitHub (Mar 31, 2017).
Original GitHub issue: https://github.com/brutaldev/StrongNameSigner/issues/33

When installing via nuget with the new PackageReference it isn't properly installed (it appears to have an incorrect file structure).

Originally created by @GieltjE on GitHub (Mar 31, 2017). Original GitHub issue: https://github.com/brutaldev/StrongNameSigner/issues/33 When installing via nuget with the new PackageReference it isn't properly installed (it appears to have an incorrect file structure).
kerem closed this issue 2026-02-25 21:30:30 +03:00
Author
Owner

@brutaldev commented on GitHub (Mar 31, 2017):

I actually have no idea what you're talking about...

<!-- gh-comment-id:290798864 --> @brutaldev commented on GitHub (Mar 31, 2017): I actually have no idea what you're talking about...
Author
Owner

@arledesma commented on GitHub (Mar 31, 2017):

@brutaldev I think that @GieltjE is asking for VS2017 PackageReference support.

<!-- gh-comment-id:290811395 --> @arledesma commented on GitHub (Mar 31, 2017): @brutaldev I think that @GieltjE is asking for [VS2017 PackageReference support](http://blog.nuget.org/20170316/NuGet-now-fully-integrated-into-MSBuild.html).
Author
Owner

@brutaldev commented on GitHub (Mar 31, 2017):

Right, of course. I'll see if I can get around to this over the weekend.

<!-- gh-comment-id:290819247 --> @brutaldev commented on GitHub (Mar 31, 2017): Right, of course. I'll see if I can get around to this over the weekend.
Author
Owner

@brutaldev commented on GitHub (Apr 9, 2017):

Struggling to find time to look into this, if anyone wants to take a stab at figuring it out, I would welcome a pull request. In the meantime, just execute the console application as part of your build process which will work regardless of project format, NuGet version etc. Examples in the build process section.

<!-- gh-comment-id:292819563 --> @brutaldev commented on GitHub (Apr 9, 2017): Struggling to find time to look into this, if anyone wants to take a stab at figuring it out, I would welcome a pull request. In the meantime, just execute the console application as part of your build process which will work regardless of project format, NuGet version etc. Examples [in the build process section](https://github.com/brutaldev/StrongNameSigner#build-process).
Author
Owner

@GieltjE commented on GitHub (May 15, 2017):

Simply renaming the "build" folder to "lib" seems to solve the problem (remove the "obj" and "bin" folders before the first build). That would leave out any targeted building but for now would do the trick.

<!-- gh-comment-id:301402211 --> @GieltjE commented on GitHub (May 15, 2017): Simply renaming the "build" folder to "lib" seems to solve the problem (remove the "obj" and "bin" folders before the first build). That would leave out any targeted building but for now would do the trick.
Author
Owner

@brutaldev commented on GitHub (May 15, 2017):

So in the NuGet package, should the build folder be lib instead? It used to be tools in v1.x and changed to build in 2.x. I think it was a convention for build scripts since the target file was introduced in 2.0.

<!-- gh-comment-id:301597024 --> @brutaldev commented on GitHub (May 15, 2017): So in the NuGet package, should the `build` folder be `lib` instead? It used to be `tools` in v1.x and changed to `build` in 2.x. I think it was a convention for build scripts since the target file was introduced in 2.0.
Author
Owner

@GieltjE commented on GitHub (May 16, 2017):

I think so, looking at existing packages (haven't read the documentation) the directory structure is
$userdir.nuget$packagename$version\lib$target (e.g. C:\Users\Administrator.nuget\packages\mailkit\1.16.1\lib\net451, C:\Users\Administrator.nuget\packages\mailkit\1.16.1\lib\MonoAndroid10, C:\Users\Administrator.nuget\packages\mailkit\1.16.1\lib\Xamarin.iOS10).
But with the files in just \lib without a target it appears to work just fine.

This seems to be supported by https://docs.microsoft.com/en-us/nuget/create-packages/creating-a-package

<!-- gh-comment-id:301697073 --> @GieltjE commented on GitHub (May 16, 2017): I think so, looking at existing packages (haven't read the documentation) the directory structure is $userdir\.nuget\$packagename\$version\lib\$target (e.g. C:\Users\Administrator\.nuget\packages\mailkit\1.16.1\lib\net451, C:\Users\Administrator\.nuget\packages\mailkit\1.16.1\lib\MonoAndroid10, C:\Users\Administrator\.nuget\packages\mailkit\1.16.1\lib\Xamarin.iOS10). But with the files in just \lib without a target it appears to work just fine. This seems to be supported by https://docs.microsoft.com/en-us/nuget/create-packages/creating-a-package
Author
Owner

@brutaldev commented on GitHub (May 16, 2017):

I'll have to take a look at this change carefully, there must be a reason I used build. I'll try check it out over the weekend when I have a bit more time to spend on this.

<!-- gh-comment-id:301935485 --> @brutaldev commented on GitHub (May 16, 2017): I'll have to take a look at this change carefully, there must be a reason I used `build`. I'll try check it out over the weekend when I have a bit more time to spend on this.
Author
Owner

@MichelZ commented on GitHub (May 8, 2018):

Was there any progress on this?
Thanks

<!-- gh-comment-id:387292447 --> @MichelZ commented on GitHub (May 8, 2018): Was there any progress on this? Thanks
Author
Owner

@Galad commented on GitHub (Dec 7, 2018):

Hello @brutaldev
Were you able to make any progress on this issue ?

Thanks

<!-- gh-comment-id:445167221 --> @Galad commented on GitHub (Dec 7, 2018): Hello @brutaldev Were you able to make any progress on this issue ? Thanks
Author
Owner

@brutaldev commented on GitHub (Dec 7, 2018):

@Galad Nope, I simply haven't had the time to look into this, was hoping someone would be able to make a pull request for it.

<!-- gh-comment-id:445179321 --> @brutaldev commented on GitHub (Dec 7, 2018): @Galad Nope, I simply haven't had the time to look into this, was hoping someone would be able to make a pull request for it.
Author
Owner

@brutaldev commented on GitHub (Sep 25, 2019):

Version 2.4.0 seems to work pretty well as a project reference now, path remains as "build" which will automatically identify the target file and use it as a build tool.

<!-- gh-comment-id:535208711 --> @brutaldev commented on GitHub (Sep 25, 2019): Version [2.4.0](https://github.com/brutaldev/StrongNameSigner/releases/tag/2.4.0) seems to work pretty well as a project reference now, path remains as "build" which will automatically identify the target file and use it as a build tool.
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#29
No description provided.