Add the following to your environment variables (requires for dotnet tools to use the correct version): MSBuildSDKsPath=/usr/local/share/dotnet/sdk/9.0.300/sdks
MSBuildSDKsPath=/usr/local/share/dotnet/sdk/9.0.300/sdks