CasterHex
CasterHex
CC#
Created by CasterHex on 2/20/2025 in #help
✅ Using dotnet CLI with net5.0 on macos
I've got the dotnet cli working, with the latest 9.x SDK. I'm looking to help a friend with a net 5.0 project. My understanding is that core is backwards compatible and I'd be able to run something like dotnet new console -f net5.0, but that failed as the only available version is 9.x. I've since installed net 5.0 separately using the dotnet-install script, but as that install to a different location, it's still not available to use via dotnet new. Is there a way to allow the dotnet cli to use 5.0 at all?
11 replies