How to Install .NET SDK on macOS

How to Install .NET SDKs on macOS and Switch Between Multiple Versions

Hey, Tea Lovers! Lets see how to install single or multiple .NET SDKs on macOS and switch between them. Option 1: Using Homebrew The latest one can be directly installed by following command. brew install --cask dotnet-sdk For a specific version just suffix it with @<version> Example, for .NET 8 it would be, brew install --cask dotnet-sdk@8 Simply paste in terminal and run. Note: Homebrew currently only has limited versions so older versions might not be available. In that case, use Option 2 or 3. ...

March 16, 2026 · 3 min · Imran Shaikh