I'm trying to run dotnet 6 program, but it is complaining that the framework is missing.
The sdk is installed as you see:
rami@rami-ThinkPad:~$ dotnet --list-sdks
3.1.426 [/usr/share/dotnet/sdk]
6.0.405 [/usr/share/dotnet/sdk]
7.0.102 [/usr/share/dotnet/sdk]
But when I try to run a program I get this:
dotnet run
Building...
You must install or update .NET to run this application.
App: /home/rami/th-work/internal-mkj-api/Internal-MKJ-API/bin/Debug/net6.0/Internal-MKJ-API
Architecture: x64
Framework: 'Microsoft.NETCore.App', version '6.0.0' (x64)
.NET location: /usr/share/dotnet
The following frameworks were found:
3.1.32 at [/usr/share/dotnet/shared/Microsoft.NETCore.App]
7.0.2 at [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Learn about framework resolution:
https://aka.ms/dotnet/app-launch-failed
To install missing framework, download:
https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=6.0.0&arch=x64&rid=ubuntu.22.04-x64
This started after I run automatic updates of the Ubuntu and restarted my computer.