Skip to content

Instantly share code, notes, and snippets.

@SIRprise
Last active August 24, 2024 07:26
Show Gist options
  • Save SIRprise/124b280fd47ac66d9ca0cbb82e045cf7 to your computer and use it in GitHub Desktop.
Save SIRprise/124b280fd47ac66d9ca0cbb82e045cf7 to your computer and use it in GitHub Desktop.
Determine installed dotnet versions
Open Powershell - 3 different ways:
Get-ChildItem 'HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP' -Recurse | Get-ItemProperty -Name Version,Installpath -EA 0 | Where { $_.PSChildName -Match '^(?!S)\p{L}'} | Select PSChildName, Version, Installpath
dotnet --list-sdks
dotnet --list-runtimes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment