question

DaniKaplan-9316 avatar image
0 Votes"
DaniKaplan-9316 asked RLWA32-6355 answered

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

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

dotnet-csharp
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Castorix31 avatar image
0 Votes"
Castorix31 answered

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

 dotnet --info

or

 dotnet --list-runtimes


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

RLWA32-6355 avatar image
0 Votes"
RLWA32-6355 answered

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


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.