Fix for "Referenced assembly 'AzureFunctions.Extensions.Middleware, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null' does not have a strong name"

I have received a mail from one of our users with an issue - Referenced assembly ‘AzureFunctions.Extensions.Middleware, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null’ does not have a strong name

https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qwwwn2vxpb2iiitzxz82.png

This issue is happening because the package is not signed with code signing certificate. Most of the Open source projects in the Nuget are currently not signed due to below reasons.


  • Cost ( All the code signing authority are charging huge amount for buying a certificate and you won’t be able to use self-signed certificate in Nuget)
  • Binding Policy
  • Virality
  • No Drop-in replacement

https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0g4ux0iekdl2e8mygjsg.png

Ref for last 3 points :https://github.com/dotnet/corefx/blob/c02d33b18398199f6acc17d375dab154e9a1df66/Documentation/project-docs/strong-name-signing.md#faq


Please try either of these steps to fix this issue

1
nuget.exe trusted-signers add -name NuGet.org -serviceindex https://api.nuget.org/v3/index.json -owners Divakar_Kumar

Note: If in future you are gonna add more owners you will receive this error “A trusted signer ‘Nuget.org’ already exists”. So it is always recommended to remove the Nuget.org trusted signer and add again with a complete list of everyone on nuget.org that you trust.

1
nuget.exe trusted-signers add -name NuGet.org -serviceindex https://api.nuget.org/v3/index.json -owners microsoft;nuget;Divakar_Kumar

If you wish to contribute to this open source or provide feedback, Feel free to reach out to me on below links


Leave a ⭐ in the below github repo if this library helped you at handling cross-cutting concerns of the application.

https://github.com/Cloud-Jas/AzureFunctions.Extensions.Middleware