I have an existing Azure App Service running on ASP.NET Core 3.x. I have upgraded the application to today’s release of ASP.NET Core 5. This works fine on my local IIS Express server. When I publish to the application to the App Service using Visual Studio 2019, however, I receive the following error:
HTTP Error 500.31 - ANCM Failed to Find Native Dependencies
Common solutions to this issue:
The specified version of Microsoft.NetCore.App or Microsoft.AspNetCore.App was not found.
With detailed errors enabled, I get the following additional information:
It was not possible to find any compatible framework version
The framework 'Microsoft.AspNetCore.App', version '5.0.0' was not found.
The following frameworks were found:
2.1.20 at [D:\Program Files (x86)\dotnet\shared\Microsoft.AspNetCore.App]
2.1.22 at [D:\Program Files (x86)\dotnet\shared\Microsoft.AspNetCore.App]
2.2.11 at [D:\Program Files (x86)\dotnet\shared\Microsoft.AspNetCore.App]
2.2.14 at [D:\Program Files (x86)\dotnet\shared\Microsoft.AspNetCore.App]
3.0.3 at [D:\Program Files (x86)\dotnet\shared\Microsoft.AspNetCore.App]
3.1.6 at [D:\Program Files (x86)\dotnet\shared\Microsoft.AspNetCore.App]
3.1.8 at [D:\Program Files (x86)\dotnet\shared\Microsoft.AspNetCore.App]
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=x86&rid=win10-x86
I had understood that ASP.NET Core 5 would be immediately available on Azure App Services. Am I missing a step? How can I publish an ASP.NET Core 5 web application to an Azure App Service? Or do I still need to wait until the .NET 5 runtime is available on Azure?