I have a dotnet 3.1 console application on centos linux.
The error is:
It was not possible to find any compatible framework version The framework 'Microsoft.NETCore.App', version '3.1.0' 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:
I have dotnet sdk installed on server. dotnet --info gives
.NET Core SDK (reflecting any global.json): Version: 3.1.411 Commit: d100cdf718
Runtime Environment: OS Name: centos OS Version: 7 OS Platform: Linux RID: centos.7-x64 Base Path: /usr/share/dotnet/sdk/3.1.411/
Host (useful for support): Version: 3.1.17 Commit: 3a75b805fa
.NET Core SDKs installed: 3.1.411 [/usr/share/dotnet/sdk]
.NET Core runtimes installed: Microsoft.AspNetCore.App 3.1.17 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App] Microsoft.NETCore.App 3.1.17 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
To install additional .NET Core runtimes or SDKs: https://aka.ms/dotnet-download