0
votes

"The specified version of Microsoft.NetCore.App or Microsoft.AspNetCore.App was not found."

Everything I've read led me to believe that .NET 5 is ready to be used for an app service. So I made the necessary changes and merged my code. The build (pipeline) went find. The release made it to the App Service. But for some reason the machine with the App service does not have .NET 5 installed. My question is, am I wrong in assuming that Azure is raeady to host .NET 5 applications. If it is possible, then how do I do this?

2
Does this answer your question? Deploy ASP.NET Core 5 app to Azure App Service?. Note: This is my question (and answer), but it's addressing the exact same error, and proposes the exact same solution outlined below.Jeremy Caney

2 Answers

2
votes

App Service DOES support .NET 5, but the verbiage on the config page is confusing. You need to set the app service to use '.NET' instead of '.NET Core'. Follow these steps:

Go to the App Service in Azure

  • under Settings, click on 'Configuration'
  • then 'General settings'
  • Change 'Stack' from '.NET Core' to '.NET'
  • Set '.NET Framework version' to '.NET 5 (Early Access)'
  • Save

I'm not sure why they put .NET 5 under the .NET Framework dropdown or why it's still labeled "early access" but this should hopefully get you up and running again.

-1
votes

The documentation is clear on that error. Try to install NET 5