Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure web app with .NET Core 3.0 fails: Can't find Microsoft.AspNetCore.App

We are trying to deploy our web app after upgrading to .NET Core 3.0, but it keeps getting the "service unavailable" message. If we try to run dotnet from Kudu (dotnet webapp.dll) we get the following error:

It was not possible to find any compatible framework version
The specified framework 'Microsoft.AspNetCore.App', version '3.0.0' was not found.
  - The following frameworks were found:
      2.1.10 at [D:\Program Files (x86)\dotnet\shared\Microsoft.AspNetCore.App]
      2.1.12 at [D:\Program Files (x86)\dotnet\shared\Microsoft.AspNetCore.App]
      2.1.13 at [D:\Program Files (x86)\dotnet\shared\Microsoft.AspNetCore.App]
      2.2.5 at [D:\Program Files (x86)\dotnet\shared\Microsoft.AspNetCore.App]
      2.2.6 at [D:\Program Files (x86)\dotnet\shared\Microsoft.AspNetCore.App]
      2.2.7 at [D:\Program Files (x86)\dotnet\shared\Microsoft.AspNetCore.App]

You can resolve the problem by installing the specified framework and/or SDK.

The .NET Core frameworks can be found at:
  - https://aka.ms/dotnet-download

We tried to install .NET Core 3.0 with Microsoft's guide for Azure, but with no success.

Any suggestions?

like image 687
forsmyr Avatar asked Oct 02 '19 14:10

forsmyr


2 Answers

We had exactly the same problem. Azure App Service does not currently support Net Core 3.

The temporary workaround is to build a self contained app from Visual Studio through the publish tool. You can change it from Framework Dependent to Self Contained in the publishing settings. Simply deploy that to Azure.

We also tried to use our DevOps pipelines to do this, but couldn't work out how to do a self contained build and as Azure will hopefully support Net Core 3 soon, the publish works fine for now.

Hope that helps :)

like image 163
David D Avatar answered Oct 21 '22 09:10

David D


You can keep track on the latest releases on the ASP.NET Core on App Service Dashboard

like image 9
sjokkogutten Avatar answered Oct 21 '22 09:10

sjokkogutten