Check installed .NET versions on Windows, Linux, and macOS - .NET (2024)

  • Article

This article teaches you how to check which versions of the .NET runtime and SDK are installed on your computer. If you have an integrated development environment, such as Visual Studio, .NET may have already been installed.

Installing an SDK installs the corresponding runtime.

If any command in this article fails, you don't have the runtime or SDK installed. For more information, see the install articles for Windows, macOS, or Linux.

Check SDK versions

You can see which versions of the .NET SDK are currently installed with a terminal. Open a terminal and run the following command.

dotnet --list-sdks

You get output similar to the following.

3.1.424 [C:\program files\dotnet\sdk]5.0.100 [C:\program files\dotnet\sdk]6.0.402 [C:\program files\dotnet\sdk]7.0.404 [C:\program files\dotnet\sdk]8.0.100 [C:\program files\dotnet\sdk]
3.1.424 [/home/user/dotnet/sdk]5.0.100 [/home/user/dotnet/sdk]6.0.402 [/home/user/dotnet/sdk]7.0.404 [/home/user/dotnet/sdk]8.0.100 [/home/user/dotnet/sdk]
3.1.424 [/usr/local/share/dotnet/sdk]5.0.100 [/usr/local/share/dotnet/sdk]6.0.402 [/usr/local/share/dotnet/sdk]7.0.404 [/usr/local/share/dotnet/sdk]8.0.100 [/usr/local/share/dotnet/sdk]

Check runtime versions

You can see which versions of the .NET runtime are currently installed with the following command.

dotnet --list-runtimes

You get output similar to the following.

Microsoft.AspNetCore.App 3.1.30 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]Microsoft.AspNetCore.App 6.0.10 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]Microsoft.AspNetCore.App 7.0.5 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]Microsoft.AspNetCore.App 8.0.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]Microsoft.NETCore.App 3.1.30 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]Microsoft.NETCore.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]Microsoft.NETCore.App 6.0.10 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]Microsoft.NETCore.App 7.0.5 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]Microsoft.NETCore.App 8.0.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]Microsoft.WindowsDesktop.App 3.1.30 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]Microsoft.WindowsDesktop.App 6.0.10 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]Microsoft.WindowsDesktop.App 7.0.5 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]Microsoft.WindowsDesktop.App 8.0.0 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.AspNetCore.All 2.1.7 [/usr/lib/dotnet/shared/Microsoft.AspNetCore.All]Microsoft.AspNetCore.All 2.1.13 [/usr/lib/dotnet/shared/Microsoft.AspNetCore.All]Microsoft.AspNetCore.App 2.1.7 [/usr/lib/dotnet/shared/Microsoft.AspNetCore.App]Microsoft.AspNetCore.App 2.1.13 [/usr/lib/dotnet/shared/Microsoft.AspNetCore.App]Microsoft.AspNetCore.App 3.1.0 [/usr/lib/dotnet/shared/Microsoft.AspNetCore.App]Microsoft.AspNetCore.App 5.0.0 [/usr/lib/dotnet/shared/Microsoft.AspNetCore.App]Microsoft.AspNetCore.App 6.0.0 [/usr/lib/dotnet/shared/Microsoft.AspNetCore.App]Microsoft.NETCore.App 2.1.7 [/usr/lib/dotnet/shared/Microsoft.NETCore.App]Microsoft.NETCore.App 2.1.13 [/usr/lib/dotnet/shared/Microsoft.NETCore.App]Microsoft.NETCore.App 3.1.0 [/usr/lib/dotnet/shared/Microsoft.NETCore.App]Microsoft.NETCore.App 5.0.0 [/usr/lib/dotnet/shared/Microsoft.NETCore.App]Microsoft.NETCore.App 6.0.0 [/usr/lib/dotnet/shared/Microsoft.NETCore.App]Microsoft.NETCore.App 7.0.0 [/usr/lib/dotnet/shared/Microsoft.NETCore.App]Microsoft.NETCore.App 8.0.0 [/usr/lib/dotnet/shared/Microsoft.NETCore.App]
Microsoft.AspNetCore.All 2.1.7 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All]Microsoft.AspNetCore.All 2.1.13 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All]Microsoft.AspNetCore.App 2.1.7 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]Microsoft.AspNetCore.App 2.1.13 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]Microsoft.AspNetCore.App 3.1.0 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]Microsoft.AspNetCore.App 5.0.0 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]Microsoft.AspNetCore.App 6.0.0 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]Microsoft.NETCore.App 2.1.7 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]Microsoft.NETCore.App 2.1.13 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]Microsoft.NETCore.App 3.1.0 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]Microsoft.NETCore.App 5.0.0 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]Microsoft.NETCore.App 6.0.0 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]Microsoft.NETCore.App 7.0.0 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]Microsoft.NETCore.App 8.0.0 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]

Check for install folders

It's possible that .NET is installed but not added to the PATH variable for your operating system or user profile. In this case, the commands from the previous sections may not work. As an alternative, you can check that the .NET install folders exist.

When you install .NET from an installer or script, it's installed to a standard folder. Much of the time the installer or script you're using to install .NET gives you an option to install to a different folder. If you choose to install to a different folder, adjust the start of the folder path.

  • dotnet executable
    C:\program files\dotnet\dotnet.exe

  • .NET SDK
    C:\program files\dotnet\sdk\{version}\

  • .NET Runtime
    C:\program files\dotnet\shared\{runtime-type}\{version}\

  • dotnet executable
    /home/user/.dotnet/dotnet
    /usr/lib/dotnet/dotnet
    /usr/share/dotnet/dotnet\

  • .NET SDK
    /home/user/.dotnet/sdk/{version}/
    /usr/lib/dotnet/sdk/{version}/
    /usr/share/dotnet/sdk/{version}/\

  • .NET Runtime
    /home/user/.dotnet/shared/{runtime-type}/{version}/
    /usr/lib/dotnet/shared/{runtime-type}/{version}/
    /usr/share/dotnet/shared/{runtime-type}/{version}/\

  • dotnet executable
    /usr/local/share/dotnet/dotnet

  • .NET SDK
    /usr/local/share/dotnet/sdk/{version}/

  • .NET Runtime
    /usr/local/share/dotnet/shared/{runtime-type}/{version}/

More information

You can see both the SDK versions and runtime versions with the command dotnet --info. You'll also get other environmental related information, such as the operating system version and runtime identifier (RID).

Next steps

See also

Check installed .NET versions on Windows, Linux, and macOS - .NET (2024)

FAQs

How do you check what versions of .NET are installed? ›

You can install and run multiple versions of .NET Framework on a computer. If you want to check the versions on your own computer, the easiest way is through Control Panel > Programs > Programs and Features, or in Settings under Apps > Installed apps. You can also use these community-maintained tools.

How do you check .NET is installed or not in Linux? ›

You can see both the SDK versions and runtime versions with the command dotnet --info . You'll also get other environmental related information, such as the operating system version and runtime identifier (RID).

Which .NET framework is installed on my computer? ›

You can check your installed versions of . NET by navigating to Microsoft.NET\Framework under your Windows folders. The complete path is usually 'C:\Windows\Microsoft.NET\Framework.

How do I know which .NET SDK is installed? ›

Determine what is installed

The . NET CLI has options you can use to list the versions of the SDK and runtime that are installed on your computer. Use dotnet --list-sdks to see the list of installed SDKs and dotnet --list-runtimes for the list of runtimes.

How to check dotnet version in Ubuntu? ›

To check your dotnet version installed, use dotnet --info . This command will display the SDKs and runtimes installed on your system together with the path where they can be found.

How to check the version of .NET in command prompt? ›

To check what version of .Net installed on the machine, follow steps below:
  1. Run command "regedit" from console to open Registry Editor.
  2. Look for HKEY_LOCAL_MACHINE\Microsoft\NET Framework Setup\NDP.
  3. All installed .NET Framework versions are listed under NDP drop-down list.

How do I see what software is installed on Linux? ›

2. Using apt Package Manager
  1. 2.1. List Installed Packages. We use the ––installed tag to only list the installed packages. ...
  2. 2.2. List Packages. We use the apt list command to list all the installed and available packages. ...
  3. 2.3. List Specific Package. We add the package name to the apt list command to list a specific package.
Mar 18, 2024

Where is dotnet installed Linux? ›

" The default location on Linux and macOS is /usr/local/share/dotnet" #34703.

How do you check .NET 6 is installed or not? ›

NET Core is installed on Windows is:
  1. Press Windows + R.
  2. Type cmd.
  3. On the command prompt, type dotnet --version.
Jul 25, 2016

Where is dotnet installed on Mac? ›

On an Arm-based Mac, all Arm64 versions of .NET are installed to the normal /usr/local/share/dotnet/ folder.

What is the difference between .NET and .NET Framework? ›

.NET and .NET Framework share many of the same components and you can share code across the two. Some key differences include: .NET is cross-platform and runs on Linux, macOS, and Windows. . NET Framework only runs on Windows.

Can you have multiple versions of .NET Framework installed? ›

Multiple versions of . NET Framework can be installed on a single Windows computer without conflict. If you have multiple versions of . NET Framework on your computer, chances are it's because an application requires a specific version to function.

Where is .NET SDK installed on Windows? ›

The SDK installs to a versioned folder such as C:\Program Files\dotnet\sdk\7.0. 400\ on Windows or /usr/bin/share/dotnet/sdk/7.0.

How do I find my SDK version on Mac? ›

Apple distributes SDKs as part of the Xcode app bundle. Each Xcode version comes with one macOS SDK, the SDK for the most recent released version of macOS at the time of the Xcode release. The SDK is located at /Applications/Xcode. app/Contents/Developer/Platforms/MacOSX.

What is my .NET SDK? ›

The software development kit (SDK) includes everything you need to build and run . NET applications, using command-line tools and any editor (like Visual Studio). Runtime (Windows) The runtime includes everything you need to run .

How do I know if .NET 3.5 is installed? ›

Procedure Steps
  1. Click [Start] in the bottom-left corner of the display.
  2. Highlight Administrative Tools and select Server Manager.
  3. In the Server Manager interface, click [Features] to show all the installed features in the right pane. Verify that . NET Framework 3.5. 1 is listed.
Jan 11, 2022

How do I know which .NET core version is installed on my server? ›

Open a command prompt and enter the version command. This should return a version number.

Top Articles
Latest Posts
Article information

Author: The Hon. Margery Christiansen

Last Updated:

Views: 5674

Rating: 5 / 5 (70 voted)

Reviews: 93% of readers found this page helpful

Author information

Name: The Hon. Margery Christiansen

Birthday: 2000-07-07

Address: 5050 Breitenberg Knoll, New Robert, MI 45409

Phone: +2556892639372

Job: Investor Mining Engineer

Hobby: Sketching, Cosplaying, Glassblowing, Genealogy, Crocheting, Archery, Skateboarding

Introduction: My name is The Hon. Margery Christiansen, I am a bright, adorable, precious, inexpensive, gorgeous, comfortable, happy person who loves writing and wants to share my knowledge and understanding with you.