azure-functions-dotnet-worker: The framework 'Microsoft.AspNetCore.App', version '5.0.0' was not found.

When running this function on a Linux-based Azure Functions App (running in West US 2), I receive the following error:

The framework 'Microsoft.AspNetCore.App', version '5.0.0' was not found.
  - No frameworks were found.
You can resolve the problem by installing the specified framework and/or SDK.
The specified framework can be found at:
  - https://aka.ms/dotnet-core-applaunch?framework=Microsoft.AspNetCore.App&framework_version=5.0.0&arch=x64&rid=debian.10-x64
Exceeded language worker restart retry count for runtime:dotnet-isolated. Shutting down and proactively recycling the Functions Ho

If you need additional information you can also reach me on Teams.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 1
  • Comments: 16 (6 by maintainers)

Most upvoted comments

There may be an issue here with the Linux images we’re using – we will investigate and follow-up on this.

I’ve hit a very similar issue, but mine ends up with a time out.

I moved exactly the same deployment to a Windows function, and it worked absolutely fine. Moved it back to a Linux function, and Boom! Can’t find Microsoft.AspNetCore.App version 5.0.0.

Looks like something screwy is going on with the Linux hosts at the moment.

Hey all – we’re investigating this now – can those of you hitting this issue confirm that you’re trying to do this in your project file?

<FrameworkReference Include="Microsoft.AspNetCore.App" />

And if you have an exact repro project file somewhere, that’d be helpful.