.Net Core lastest SDK installed but getting 'Framework 'Microsoft.AspNetCore.App', version '2.1.0' was not found

user3698624

I want to use .Net Core on linux and do have the latest releases:

> sudo pacman -Qs dotnet
local/dotnet-host 2.1.0-1
    A generic driver for the .NET Core Command Line Interface
local/dotnet-runtime 2.1.0-1
    The .NET Core runtime
local/dotnet-sdk 2.1.300-1
    The .NET Core SDK
> dotnet --version
2.1.300

But when I want to run my sample application (just the razor template):

> dotnet run  
Using launch settings from /home/user/src/WebRepTrack/Properties/launchSettings.json...
It was not possible to find any compatible framework version
The specified framework 'Microsoft.AspNetCore.App', version '2.1.0' was not found.
  - Check application dependencies and target a framework version installed at:
      /opt/dotnet/
  - Installing .NET Core prerequisites might help resolve this problem:
      http://go.microsoft.com/fwlink/?LinkID=798306&clcid=0x409
  - The .NET Core framework and SDK can be installed from:
      https://aka.ms/dotnet-download

Looking at this issue, the problem was that the user did not have the appropiate sdk/runtime version installed, but that's not the cause of my issue, isnt it?

Edit: After looking into the dotnet-core repo at github, I realized that MS now ships the asp.net core support with the package aspnetcore-runtime-2.1.0 (whereas before, it was shipped with the core-runtime). The ArchLinux package dotnet-runtime does not include this change! See here for more details:
https://bugs.archlinux.org/task/58806

user3698624

After looking into the dotnet-core repo at github, I realized that MS now ships the asp.net core support with the package aspnetcore-runtime-2.1.0 (whereas before, it was shipped with the core-runtime). The ArchLinux package dotnet-runtime does not include this change! See here for more details:

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

The specified framework 'Microsoft.NETCore.App', version '2.2.0' was not found

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

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

The .NET Core SDK is not installed or cannot be found under the path

The iOS SDK version '...' is not installed, and no newer version was found

ASPNETCoreModule not installed with .NET Core SDK

.NET Core The specified framework 'Microsoft.NETCore.App', version '1.1.2' was not found

Windows Server: The specified framework 'Microsoft.AspNetCore.App', version '2.1.0' was not found

The specified framework 'Microsoft.NETCore.App', version '2.1' was not found

Error when running in Docker The specified framework 'Microsoft.AspNetCore.App', version '2.1.6' was not found. on

The specified framework 'Microsoft.AspNetCore.App', version '2.2.0' was not found. - Azure App Service on Linux

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

Find Entity Framework Core Lastest SDK 3.1.100-preview1-014024

error : Version 5.0.10 0-alpha1-014696 of the .NET Core SDK requires at least version 16.3.0 of MSBuild

Specified framework 'Microsoft.AspNetCore.App', version '3.1.0' was not found for a Linux Azure WebApp

Docker - The framework microsoft.AspNetCore.App, version '3.1'0 was not found on build

Getting Microsoft.AspNetCore.Hosting.Diagnostics[6] Application startup exception in .NET Core 3

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

New ASP.NET Core Project does not build; "The framework 'Microsoft.NETCore.App', version '2.0.9' was not found."

VSTS Hosted agents fails with: The project is configured to use .NET Core SDK version 1.0.0-preview2-003121 which is not installed

Where is Microsoft.AspNetCore.Antiforgery library defined in .NET Core 2?

Microsoft.AspNetCore.All on .NET Framework 4.6.1

Google App Engine Logs "The specified framework 'Microsoft.AspNetCore.App', version '2.1.1' was not found."

Azure DevOps build: "sdk\2.1.515\ [...] not found. Check that a recent enough .NET Core SDK is installed or increase the version in global.json"

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

The framework 'Microsoft.WindowsDesktop.App', version '5.0.0' was not found

The framework 'Microsoft.NETCore.App', version '5' was not found while Microsoft.NETCore.App 5.0.0 is found

The framework 'Microsoft.AspNetCore.App', version '3.1.0' (x64) was not found

The framework 'Microsoft.AspNetCore.App', version '6.0.0' (x64) was not found