.NET Standard Packages Not Signed?

258 views
Skip to first unread message

Nick S

unread,
Jun 22, 2017, 1:49:29 AM6/22/17
to RavenDB - 2nd generation document database
Hello! I'm working on converting a web site that uses RavenDB to .NET Core, and all of the assemblies for the site are signed. I've added the RavenDB client dependency to one of my supporting projects which targets .NETStandard 1.4. The project fails to build, complaining that the RavenDB assemblies are not signed. Upon investigation, it seems that the 3.5.3 libraries pulled from NuGet that target .NETStandard1.3 are indeed unsigned. The ones targeting the full .NET 4.5 are signed properly. Is this a known issue?

Thanks!

Nick S

Grzegorz Lachowski

unread,
Jun 23, 2017, 4:22:57 AM6/23/17
to RavenDB - 2nd generation document database

Nick S

unread,
Jun 25, 2017, 1:56:42 AM6/25/17
to RavenDB - 2nd generation document database
Ah, I see. Thanks for the info. Out of curiosity, why are you then still signing the libraries targeting the full framework? For backward compatibility?

I'm not exactly sure how this multi-targeting is supposed to work, but it does seem that I'm unable to have a .NET Standard library (which contains my indexes) reference RavenDB 3.5.3, and then have my legacy MVC site (targeting the full .NET framework) reference that library (to access the index definitions). The build errors out because the legacy MVC project does not reference the library that defines the base classes for my indexes, even though it does have a reference to RavenDB 3.5.3 (just with a different target). Is this possibly because one is signed and one is not?

Interestingly, I have no such issue with another project (which contains my entity definitions), even though it targets .NET Standard 1.4 and references Newtonsoft.Json.

Thanks,

Nick

Grzegorz Lachowski

unread,
Jun 26, 2017, 7:19:38 AM6/26/17
to RavenDB - 2nd generation document database
Yes, for backward compatibility.

I haven't tried that myself yet, but consider your build directory. Which of Raven.Client dlls is going to land in that directory, since you reference both of them?
Reply all
Reply to author
Forward
0 new messages