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 {…

--

--

Guillermo Musumeci

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