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

C#
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.
10,512 questions
0 comments No comments
{count} votes

1 additional answer

Sort by: Most helpful
  1. RLWA32 42,006 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

    0 comments No comments