mirror of
https://github.com/brutaldev/StrongNameSigner.git
synced 2026-04-25 11:26:04 +03:00
[GH-ISSUE #95] Can not get it to work with .NET Standard 2.0 Project and Nuget Packages Scrypt.NET and CSVTextFieldParser #77
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 @meArchive13 on GitHub (Feb 16, 2023).
Original GitHub issue: https://github.com/brutaldev/StrongNameSigner/issues/95
Thank you for your valuable work, in projects with .NET 4.8 the StrongNameSigner works very well and reliable.
But somehow I can not get it to work with a .NET Standard 2.0 Project and the Nuget Packages Scrypt.NET 1.3.0 and CsvTextFieldParser 1.2.2
You can find a demo project here to reproduce the issue:
https://github.com/meneasysoft/SigningNetStd20
I still get the following warnings:
Referenced assembly "Scrypt, Version=1.3.0.0, Culture=neutral, PublicKeyToken=null" does not have a strong name
Referenced assembly "CsvTextFieldParser, Version=1.2.2.0, Culture=neutral, PublicKeyToken=null" does not have a strong name
How do I fix this?
Do I have to put an extra reference to the DLL in to the project file?
All help is appreciated.
Thank you in advance!
@brutaldev commented on GitHub (Feb 16, 2023):
Typically packages in the
.nugetdirectory are ignored: https://github.com/brutaldev/StrongNameSigner/blob/master/src/Brutal.Dev.StrongNameSigner/AutomaticBuildTask.cs#L77I can remove this line but who knows what kind of havoc that's going to cause... Perhaps @nickrandolph has some ideas on how to control this from the targets file?
@meArchive13 commented on GitHub (Feb 16, 2023):
Hello @brutaldev ,
thank you very much for the quick response. That information helped a lot.
I simply now put a NuGet.config into my Solution with the following content to ensure that it is not taken from the users .nuget Directory:
<?xml version="1.0" encoding="utf-8"?> <configuration> <config> <add key="globalPackagesFolder" value=".\packages" /> </config> </configuration>See https://stackoverflow.com/questions/43687058/how-do-i-include-nuget-packages-in-my-solution-for-net-core-projects
No need to adjust anything then on your side. I will close this issue.