I'm attempting to compile and run a .net application on Mac OS (on our CI platform) but keep running into the following error message:
The framework 'Microsoft.NETCore.App', version '3.1.0' was not found.
- No frameworks were found.
However, another .NET application (which from what I can see, has no differences with the target framework, and only small differences between the csproj contents) compiles and runs fine just before this application is compiled and run.
dotnet --list-sdks returns:
3.1.419 [/Users/username/.dotnet/sdk]
5.0.408 [/Users/username/.dotnet/sdk]
dotnet --list-runtimes returns:
Microsoft.AspNetCore.App 3.1.25 [/Users/username/.dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.17 [/Users/username/.dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.1.25 [/Users/username/.dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.17 [/Users/username/.dotnet/shared/Microsoft.NETCore.App]
So from this I can see that .NET 3.1 is installed, but why is the application unable to be executed? Am I missing something here? Would appreciate any help or pointers.
Thanks