Fix for "Referenced assembly 'AzureFunctions.Extensions.Middleware, Version=220.127.116.11, 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=18.104.22.168, Culture=neutral, PublicKeyToken=null’ does not have a strong name
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
- No Drop-in replacement
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
Try to follow this https://github.com/dsplaisted/strongnamer
If you are familiar with commands please try the below
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.
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.