Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The framework 'Microsoft.AspNetCore.App', version '3.1.3' was not found

After upgrading targetFramework for my web app from dotnet-core-2.2 to dotnet-core-3.1.2 on another developer machine we are getting following error

It was not possible to find any compatible framework version
The framework 'Microsoft.AspNetCore.App', version '3.1.3' 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=3.1.3&arch=x64&rid=win10-x64

We have tried several approaches to solve the issue

  • Downloaded and install the dotnet core from specified link in error
  • Downloaded runtime from the link https://dotnet.microsoft.com/download/dotnet-core/3.1
  • Uninstalled the other dotnet core framework version other than 3.1.2 or 3.1.3

still we are facing the same issue, please guide me to troubleshoot this issue.

like image 564
Prakash Avatar asked May 08 '20 15:05

Prakash


People also ask

Are there any frameworks available for dotNET core app launch?

- 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=3.1.3&arch=x64&rid=win10-x64

Why am I missing the aspnetcore runtime in Visual Studio Code?

If you see this error in VS Code, you are missing the aspnetcore runtime (even though you may have installed the larger .net core runtime). Basically, .net core is not the same as aspnetcore. They are different runtimes and thus, different downloads. To get the approprirate aspnetcore.app 3.1.X version, try this microsoft download

What is the difference between ASP NET Core and ASP NET runtime?

The ASP.NET Core Runtime enables you to run existing web/server applications. On Windows, we recommend installing the Hosting Bundle, which includes the .NET Runtime and IIS support. The .NET Desktop Runtime enables you to run existing Windows desktop applications.

Do I need to install ASP NET runtime?

This release includes the .NET Runtime; you don't need to install it separately. The .NET Runtime contains just the components needed to run a console app. Typically, you'd also install either the ASP.NET Core Runtime or .NET Desktop Runtime.


2 Answers

I solved the problem by installing the Hosting bundle from here.

like image 109
RobIII Avatar answered Oct 10 '22 19:10

RobIII


I have posted same question on github dotnet issues page, the user vitek karas provided me the lead that x64 runtime C:\ProgramFiles\dotnet\shared\Microsoft.AspNetCore.App\3.1.3 folder was missing.

Then I tried reinstalling SDK 3.1.201 still folder was missing.

I also tried install aspnetcore-runtime-3.1.3 X64 still folder was missing.

finally I have downloaded dotnet-sdk-3.1.201-win-x64.zip and copied Microsoft.AspNetCore.App\3.1.3 folder manually from the zip file to C:\ProgramFiles\dotnet\shared\Microsoft.AspNetCore.App\3.1.3 then my asp.net core application started working .

like image 27
Prakash Avatar answered Oct 10 '22 20:10

Prakash