Share via

What is the formal way to detect which dot net 5.X version is installed ?

Dani Kaplan 61 Reputation points
2021-08-31T06:27:33.083+00:00

I've noticed dot net 5.x puts a version number in the registry.
But - it's a single key containing the latest version.
If you install a prior version as well it will not get reflected.
Is there a way to see all installed versions like dot net framework ?

Also -if you uninstall dot net 5.x - the key is not removed (bug ?)
so it is not a reliable option

(HKLM/SOFTWATE/dotnet/Setup/InstalledVersions/x64/sharedhost Version)

Thanks

Developer technologies | C#
Developer technologies | C#

An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.

0 comments No comments

Answer accepted by question author

  1. Castorix31 91,871 Reputation points
    2021-08-31T07:41:54.953+00:00

    A way, is, in a Powershell or cmd window:

    dotnet --info
    

    or

    dotnet --list-runtimes
    

    Was this answer helpful?

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. RLWA32 52,561 Reputation points
    2021-08-31T09:15:59.36+00:00

    Microsoft's guidance to determine installed .Net versions is at How to check that .NET is already installed

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.