How to Detect Versions of .NET Framework and .NET Core Installed in your Windows Machine

Guillermo Musumeci
3 min readJul 26, 2021

In this story, we will learn how to detect the versions of .NET Core and .NET Framework installed on your Windows machine.

Detecting .NET Core SDK in Use

Open your Command Prompt and type:

dotnet --version

Detecting .NET Core Runtimes Installed

Open your Command Prompt and type:

dotnet --list-runtimes

Detecting .NET Core SDKs Installed

Open your Command Prompt and type:

dotnet --list-sdks

Detecting .NET Framework

The information of the .NET Framework SDKs and Runtimes is stored in the registry, so the easy way to read it is to use PowerShell.

Open the PowerShell Console as Administrator and type the following command:

Get-ChildItem 'HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP' -Recurse | Get-ItemProperty -Name version -EA 0 | Where { $_.PSChildName -Match '^(?!S)\p{L}'} | Select PSChildName, version

Detecting Both .NET Core and .NET Framework Using KopiCloud DetectNET

DetectNET is a tool I created to list both .NET Core and .NET Framework versions installed.

The tool was developed in C# and the source code is available at https://github.com/guillermo-musumeci/detectnet

The compiled version of KopiCloud DetectNET is available at https://www.kopicloud.com/App/DetectNET

Download the .zip file from the website. The .zip package includes 4 versions of the tool:

  • NET2-CMD = Command-Line Version of DetectNET, compiled for .NET Framework v2.x

--

--

Guillermo Musumeci

Certified AWS, Azure & GCP Architect | HashiCorp Ambassador | Terraform SME | KopiCloud Founder | ex-AWS | Entrepreneur | Book Author | Husband & Dad of ✌