How to check which .NET SDKs and runtimes are installed (Windows, macOS, Linux)
Three commands tell you exactly which .NET SDKs and runtimes are on a machine: dotnet --list-sdks, dotnet --list-runtimes and dotnet --info. This guide shows what each one prints, how to read SDK and runtime versions, where .NET installs itself on Windows, macOS and Linux, and what to check when the dotnet command is not found.
SDK or runtime: which one do you need? Analysis
Before you run any command, it helps to know what you are looking for. The .NET runtime runs apps. The .NET SDK builds them, and it contains the compiler, the dotnet CLI commands such as build, run and publish, and a matching runtime. Microsoft's install guide notes that installing an SDK also installs the corresponding runtime.
So a developer machine or a CI build agent needs an SDK, while a server that only runs a published app needs just the runtime (or nothing at all, if the app was published as self-contained). Most version problems come from mixing these up: a build fails because the SDK is too old to target the framework, or an app will not start because the server has the SDK for a different major version but not the runtime the app asks for.
At a glance · .NET
SDK or runtime: which one do you need?The three commandsReading the runtime listReading SDK version numbersWhere .NET is installedWhen dotnet is not foundWhat to do with the answer
The three commands From the source
Open a terminal (Command Prompt or PowerShell on Windows, Terminal on macOS and Linux) and run these. They work the same way on every operating system. If a command fails, Microsoft's guidance is that the runtime or SDK is not installed (or, see below, not on your PATH).
- dotnet --list-sdks: lists every installed .NET SDK, one per line, with the folder it lives in. On Windows a line looks like 9.0.306 [C:\program files\dotnet\sdk].
- dotnet --list-runtimes: lists every installed runtime. Each line starts with the runtime name, then the version and folder, for example Microsoft.NETCore.App 9.0.10 followed by its folder in square brackets.
- dotnet --info: prints the SDK and runtime versions together with the operating system version and the runtime identifier (RID), such as win-x64 or linux-arm64. It is the most useful single command to paste into a bug report.
Reading the runtime list From the source
dotnet --list-runtimes groups runtimes by name. There are three you will see:
- Microsoft.NETCore.App: the base .NET runtime. Every .NET app needs it, including console apps and worker services.
- Microsoft.AspNetCore.App: the ASP.NET Core shared framework. Web apps, APIs, Blazor Server and SignalR need it in addition to the base runtime.
- Microsoft.WindowsDesktop.App: Windows Forms and WPF. It only exists on Windows.
- Several versions of each can be installed side by side. That is normal and is how one machine runs apps that target different major versions.
Reading SDK version numbers Analysis
Runtime versions are simple: major.minor.patch, so 10.0.1 is the first patch of .NET 10. SDK versions use the last number differently. In an SDK version such as 10.0.100, the hundreds digit is the feature band and the last two digits are the patch. Microsoft's support page explains that the first .NET 9 SDK was 9.0.100, the start of the 9.0.1xx feature band, and that 9.0.101 and 9.0.199 are in the same band while 9.0.201 is in the next one.
This matters for two reasons. First, a newer feature band can bring new SDK features and analyzers, so 9.0.200 and 9.0.100 can behave differently even though both target .NET 9. Second, installing a new patch removes the older patch in the same band: Microsoft states that installing SDK 9.0.101 removes 9.0.100 if it is present, while installing 9.0.200 leaves 9.0.101 in place. If you see more SDKs than you expect, it is usually one per feature band.
To match the two lists, remember that every SDK targets one major runtime version and can build for older target frameworks too. You only need the newest SDK for builds; extra old SDKs are only useful if a global.json file pins a project to them.
Where .NET is installed From the source
If the dotnet command does not work, you can still check whether .NET is on disk by looking in its install folders. These are Microsoft's default locations; an installer or install script can put .NET somewhere else, in which case adjust the start of the path.
- Windows: C:\program files\dotnet\dotnet.exe, with SDKs under C:\program files\dotnet\sdk and runtimes under C:\program files\dotnet\shared, one subfolder per runtime name and version.
- macOS: /usr/local/share/dotnet/dotnet, with the sdk and shared folders next to it.
- Linux: depending on how .NET was installed, one of /home/user/.dotnet, /usr/lib/dotnet or /usr/share/dotnet, each with dotnet, sdk and shared inside. Distribution packages usually use /usr/lib/dotnet; the install script uses the .dotnet folder in your home directory.
When dotnet is not found Analysis
Microsoft's install guide points out that .NET can be installed but missing from the PATH variable for your operating system or user profile, so the commands fail even though the files are there. Check the install folders above first.
If the folders exist, add the folder that contains dotnet (or dotnet.exe) to your PATH and open a new terminal. If they do not exist, install the SDK or runtime from the official download page. On Linux, a common cause of confusing results is having two installs at once, for example a distribution package in /usr/lib/dotnet and a script install in your home folder: dotnet --info shows the base path of the one that actually ran, so use it to see which copy your shell picks up.
What to do with the answer Analysis
- If your newest runtime is out of support, plan an upgrade: .NET 8 and .NET 9 reached end of support on 10 November 2026, and the supported versions are now .NET 10 (LTS) and .NET 11 (STS).
- If a runtime is supported but not on the latest patch, install the latest servicing update. Microsoft only supports the latest patch of each version, and patches carry security fixes.
- If a project must build with one particular SDK, add a global.json file to pin it instead of uninstalling the newer SDKs.
- Compare your versions with the release dates and end-of-support dates on our .NET versions page.
Sources and further reading
- How to check that .NET is already installed (Microsoft Learn) (original source)
- Releases and support for .NET (Microsoft Learn) (documentation)
- global.json overview (Microsoft Learn) (documentation)
- Download .NET (official)
Original: “How to check that .NET is already installed”, Microsoft Learn, published 18 Nov 2026, retrieved 18 Nov 2026. This article was generated from the official source using our structured templates and passed automated quality checks. Spotted a mistake? See our corrections policy.