cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
jeroenvels
Level 3

Determine dotnet core version

Is there an easy way to determine the version of dotnet core that is installed? Our application currently needs dotnet 4.8, and I use a simple system search on HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full to determine the value of the Release entry, and stop the installation if it's not the right version.

The new version of our application will need dotnet core, but from what I'm finding this has no such key which makes it harder to determine the version.

Any tips on how to do this?

Labels (1)
0 Kudos
(2) Replies
isherman
Level 4

I had some trouble with this.  It depends on what version of .NET.  Sometime between .NET 5.0.3 and 5.0.14 they switched how they do this from tracking each individual install of .NET via an uninstall GUID to using HKEY_LOCAL_MACHINE\SOFTWARE\dotnet\Setup\InstalledVersions\x64\sharedhost to track the currently installed version- if you look there, you should find the current version you have installed.  Hope this helps!

0 Kudos

Thanks, didn't know that so great tip 👍 
I'll look into that regkey to see if it has was I need.

0 Kudos