Skip to content

After each SDK update on ubuntu i cannot run .NET 7 solutions #1433

@mcgiany

Description

@mcgiany

I have ubuntu 20.04 and installed .NET SDK 7 and 8. Both from official MS package repository.
But after each update of the dotnet i cannot run any solution that is based on .NET 7

You must install or update .NET to run this application.

App: /path/to/my/solution
Architecture: x64
Framework: 'Microsoft.NETCore.App', version '7.0.0' (x64)
.NET location: /usr/share/dotnet

The following frameworks were found:
  8.0.3 at [/usr/share/dotnet/shared/Microsoft.NETCore.App]

Learn more:
https://aka.ms/dotnet/app-launch-failed

To install missing framework, download:
https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=7.0.0&arch=x64&rid=linux-x64&os=ubuntu.22.04

Only fix is remove dotnet completely and install it again. Its so annoying.

When i run: dotnet --list-sdks i got this:

7.0.407 [/usr/share/dotnet/sdk]
8.0.203 [/usr/share/dotnet/sdk]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions