Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
BaseMax opened this issue Jan 22, 2022 · 5 comments
Closed
Labels
area-Host untriaged New issue has not been triaged by the area owner

Comments

@BaseMax
Copy link

BaseMax commented Jan 22, 2022

Description

$ dotnet run and IDE error:

/home/max/Projects/FirstDotNetCore/bin/Debug/net6.0/FirstDotNetCore
It was not possible to find any compatible framework version
The framework 'Microsoft.AspNetCore.App', version '6.0.0' (x64) 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=6.0.0&arch=x64&rid=manjaro-x64

Process finished with exit code 150.

More details:

[max@workstation FirstDotNetCore]$ dotnet --info
.NET SDK (reflecting any global.json):
 Version:   6.0.100
 Commit:    9e8b04bbff

Runtime Environment:
 OS Name:     manjaro
 OS Version:  
 OS Platform: Linux
 RID:         arch-x64
 Base Path:   /usr/share/dotnet/sdk/6.0.100/

Host (useful for support):
  Version: 6.0.0
  Commit:  4822e3c3aa

.NET SDKs installed:
  3.1.120 [/usr/share/dotnet/sdk]
  6.0.100 [/usr/share/dotnet/sdk]

.NET runtimes installed:
  Microsoft.NETCore.App 3.1.20 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
  Microsoft.NETCore.App 6.0.0 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET runtimes or SDKs:
  https://aka.ms/dotnet-download

[max@workstation FirstDotNetCore]$ dotnet --list-runtimes
Microsoft.NETCore.App 3.1.20 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.0 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

[max@workstation FirstDotNetCore]$ dotnet --list-sdks
3.1.120 [/usr/share/dotnet/sdk]
6.0.100 [/usr/share/dotnet/sdk]

And dotnet ef:

[max@workstation FirstDotNetCore]$ dotnet-ef --help
Entity Framework Core .NET Command-line Tools 6.0.0

Usage: dotnet ef [options] [command]

Options:
  --version        Show version information
  -h|--help        Show help information
  -v|--verbose     Show verbose output.
  --no-color       Don't colorize output.
  --prefix-output  Prefix output with level.

Commands:
  database    Commands to manage the database.
  dbcontext   Commands to manage DbContext types.
  migrations  Commands to manage migrations.

Use "dotnet ef [command] --help" for more information about a command.

[max@workstation FirstDotNetCore]$ dotnet-ef --version
Entity Framework Core .NET Command-line Tools
6.0.0

Reproduction Steps

$ dotnet new webapp
$ dotnet run

Expected behavior

running the webapp.

Actual behavior

error!

Other information

[max@workstation FirstDotNetCore]$ uname -a
Linux workstation 5.15.12-1-MANJARO #1 SMP PREEMPT Wed Dec 29 18:08:07 UTC 2021 x86_64 GNU/Linux

similar issue: dotnet/core#3487

@dotnet-issue-labeler dotnet-issue-labeler bot added area-Host untriaged New issue has not been triaged by the area owner labels Jan 22, 2022
@ghost
Copy link

ghost commented Jan 22, 2022

Tagging subscribers to this area: @vitek-karas, @agocke, @VSadov
See info in area-owners.md if you want to be subscribed.

Issue Details

Description

$ dotnet run and IDE error:

/home/max/Projects/FirstDotNetCore/bin/Debug/net6.0/FirstDotNetCore
It was not possible to find any compatible framework version
The framework 'Microsoft.AspNetCore.App', version '6.0.0' (x64) 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=6.0.0&arch=x64&rid=manjaro-x64

Process finished with exit code 150.

-------------

More details:

[max@workstation FirstDotNetCore]$ dotnet --info
.NET SDK (reflecting any global.json):
Version: 6.0.100
Commit: 9e8b04bbff

Runtime Environment:
OS Name: manjaro
OS Version:
OS Platform: Linux
RID: arch-x64
Base Path: /usr/share/dotnet/sdk/6.0.100/

Host (useful for support):
Version: 6.0.0
Commit: 4822e3c

.NET SDKs installed:
3.1.120 [/usr/share/dotnet/sdk]
6.0.100 [/usr/share/dotnet/sdk]

.NET runtimes installed:
Microsoft.NETCore.App 3.1.20 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.0 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET runtimes or SDKs:
https://aka.ms/dotnet-download
[max@workstation FirstDotNetCore]$ dotnet --list-runtimes
Microsoft.NETCore.App 3.1.20 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.0 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
[max@workstation FirstDotNetCore]$ dotnet --list-sdks
3.1.120 [/usr/share/dotnet/sdk]
6.0.100 [/usr/share/dotnet/sdk]





### Reproduction Steps

$ dotnet new webapp
$ dotnet run



### Expected behavior

running the webapp.

### Actual behavior

error!

### Regression?

_No response_

### Known Workarounds

_No response_

### Configuration

_No response_

### Other information

[max@workstation FirstDotNetCore]$ uname -a
Linux workstation 5.15.12-1-MANJARO #1 SMP PREEMPT Wed Dec 29 18:08:07 UTC 2021 x86_64 GNU/Linux



<table>
  <tr>
    <th align="left">Author:</th>
    <td>BaseMax</td>
  </tr>
  <tr>
    <th align="left">Assignees:</th>
    <td>-</td>
  </tr>
  <tr>
    <th align="left">Labels:</th>
    <td>

`area-Host`, `untriaged`

</td>
  </tr>
  <tr>
    <th align="left">Milestone:</th>
    <td>-</td>
  </tr>
</table>
</details>

@vitek-karas
Copy link
Member

The error clearly states:

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

Your machine doesn't have the Microsoft.AspNetCore.App framework installed, this can be seen in the output of dotnet --info, the section ".NET Runtimes installed" doesn't have any mention of it.

If you follow the link in the error it points you to a download page, the Linux version of that page has basically just one download which should install both Microsoft.NETCore.App framework as well as the missing Microsoft.AspNetCore.App.

@minskiter
Copy link

The problem also occurs on docker. It seems that the runtime version of 6.0-rc is different from the sdk.

@vitek-karas
Copy link
Member

@minskiter if you're still seeing the problem, could you please create a new issue? This one seems to be answered, so I'm going to close it. Please include the actual error you get.

@minskiter
Copy link

@minskiter if you're still seeing the problem, could you please create a new issue? This one seems to be answered, so I'm going to close it. Please include the actual error you get.

Ok. #64862

@ghost ghost locked as resolved and limited conversation to collaborators Mar 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-Host untriaged New issue has not been triaged by the area owner
Projects
None yet
Development

No branches or pull requests

3 participants