The fastest way to find your .NET version
Open PowerShell or Command Prompt and run dotnet --version. This shows the version of the .NET SDK or runtime currently set as default on your machine. If you need to see all installed versions instead of just the default, run dotnet --list-sdks for SDKs and dotnet --list-runtimes for runtimes.
These commands work on Windows, macOS, and Linux. If the command is not recognized, .NET is either not installed or not in your system PATH — you may need to restart your terminal after installation or add the .NET folder to your PATH manually.
For older .NET Framework versions (the Windows-only predecessor to .NET Core), check the Windows Registry or use the .NET Framework detection tool from Microsoft instead, since those versions do not respond to the dotnet command.
Key Takeaways
- Run dotnet --version in PowerShell or Command Prompt to see your default .NET version instantly.
- Use dotnet --list-sdks and dotnet --list-runtimes to see every version you have installed, not just the default.
- .NET Framework (the older Windows-only version) requires checking the Registry or using Microsoft's detection tool instead.
- If the dotnet command does not work, restart your terminal or add .NET to your system PATH after installation.
Understanding SDK versus runtime versions
The .NET SDK includes everything needed to build and run applications — compilers, libraries, and the runtime. The runtime is the smaller package that only runs already-built applications. You can have multiple versions of each installed at the same time, and different projects on the same machine can target different versions.
When you run dotnet --version, you see the SDK version. When you run an application, it uses the runtime version specified in the project file or the latest compatible runtime available. Knowing which runtimes you have installed matters if you are troubleshooting why an application will not start — it may need a runtime version you have not installed yet.
Checking the version for a specific project
If you want to know what version a particular project targets, look in the project file itself. For .NET Core and newer, open the .csproj file (or .fsproj for F#) in a text editor and find the <TargetFramework> tag. It will show something like net8.0 or net6.0.
You can also run dotnet --version from inside the project folder, which will show the SDK version your machine is using to build it. This is not always the same as the target framework — your machine might have .NET 8 installed, but the project might target .NET 6.
Finding .NET Framework versions on Windows
.NET Framework is the older, Windows-only version that shipped with Windows itself. To see which versions are installed, open the Registry Editor (press Windows key + R, type regedit, and press Enter) and navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP.
Look for folders named v4.0.30319 (Framework 4.x), v3.5, v3.0, or v2.0.50727. Each folder represents an installed version. The Release value inside each folder shows the exact build number if you need it.
Microsoft also provides a .NET Framework detection tool that automates this check. Download it from the Microsoft website, run it, and it will list every .NET Framework version on your system without needing to touch the Registry.
Checking version through Visual Studio
If you use Visual Studio, you can see installed .NET versions without opening a terminal. Go to Tools > Options > Projects and Solutions > .NET Core (or just search for ".NET" in the Options search box). This shows the SDK versions Visual Studio knows about.
For a specific project, right-click the project in Solution Explorer, select Properties, and look at the Target Framework dropdown. This shows what version the project is set to build against, though it does not show every version installed on your machine.
What to do if you cannot find the version
If dotnet --version returns "command not found" or "is not recognized", .NET is either not installed or not in your system PATH. Restart your terminal first — sometimes the PATH does not update until you close and reopen the terminal window after installation.
If restarting does not work, check your system PATH manually. On Windows, press Windows key + R, type sysdm.cpl, click Environment Variables, and look for a PATH entry containing a .NET folder (usually something like C:\Program Files\dotnet). If it is missing, add it and restart your terminal.
On macOS or Linux, run echo $PATH in the terminal to see your PATH, or run which dotnet to see if .NET is installed anywhere. If which dotnet returns nothing, you need to install .NET or add its installation folder to your PATH.
Frequently Asked Questions
What is the difference between .NET and .NET Framework?
.NET Framework is the older Windows-only version that came before .NET Core. .NET (now called just ".NET") is the newer, cross-platform version that runs on Windows, macOS, and Linux. Microsoft stopped updating .NET Framework in 2022 and focuses all development on .NET. Most new projects should use .NET, not .NET Framework.
Can I have multiple versions of .NET installed at the same time?
Yes. You can install .NET 6, 7, 8, and other versions side by side. Each project specifies which version it targets in its project file, and your machine will use the correct one. This lets you maintain older projects while building new ones on the latest version.
Why does my application say it needs a runtime I do not have?
Your application targets a specific .NET runtime version that is not installed on your machine. Download and install the runtime from the official .NET website — you only need the runtime, not the full SDK, if you are just running applications and not building them.
Is there a way to see the version without using the command line?
On Windows, you can check .NET Framework versions through the Registry Editor or Microsoft's detection tool. For .NET Core and newer versions, the command line is the most reliable method, though Visual Studio also shows installed SDKs if you have it open.
What does "LTS" mean next to a .NET version?
LTS stands for Long Term Support. Microsoft supports LTS versions for three years, while non-LTS versions get support for only 18 months. If you need stability and long-term updates, choose an LTS version like .NET 8 or .NET 6. If you want the latest features, use the current version.