I am trying to run a project I created on .NET 5 (on another machine) on my MacOS machine running Monterey 12.1 and I got this error:
It was not possible to find any compatible framework version
The framework 'Microsoft.AspNetCore.App', version '5.0.0' (arm64) was not found.
- The following frameworks were found:
3.1.20 at [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
6.0.1 at [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
I thought it was strange since I remembered having installed it previously, but proceeded and installed (SDK 5.0.404) it again. And got the same error.
Then went and run dotnet --list-runtimes and got the following output:
Microsoft.AspNetCore.App 3.1.20 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.1 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.1.20 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.1 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
I am totally lost. It seems even though I am installing the whole SDK package and later on tried also just with the runtime installation, my machine refuses to see it as installed.