Could not load file or assembly ‘System.IdentityModel.Tokens.Jwt’ after deploying on Azure

When I have created the Azure Function and run in local machine, it gives me an error “Could not load file or assembly ‘System.IdentityModel.Tokens.Jwt’. I have used the nuget package System.IdentityModel.Tokens.Jwt and tried to re-install / update with the latest one but it won’t work.

There after I have checked and found that There is a known issue in Azure Functions host: https://github.com/Azure/azure-functions-host/issues/5894

The solution or workaround is to add the following to your .csproj:

<PropertyGroup>
  <_FunctionsSkipCleanOutput>true</_FunctionsSkipCleanOutput>
</PropertyGroup>

Happy Coding!!

Leave a Reply

Discover more from AI Infrastructure Architect & Enterprise Solution Architect

Subscribe now to keep reading and get access to the full archive.

Continue reading