Installed versions


Hi everyone,

I want to check via code; which versions are installed.

Is it enough to enumerate the ‘C:\Program Files\dotnet\shared\Microsoft.NETCore.App’ and taking the subfolders?
So if there is a: 1.0.4 and 1.1.1 version; this means that those CLR’s are installed? I see that the .version file also contains that number and a hash.

Or is there something else I need to check; and what about buildnumbers?
When I do dotnet.exe; I get this
Microsoft .NET Core Shared Framework Host

Version : 1.1.0
Build : 928f77c4bc3f49d892459992fb6e1d5542cb5e86

When doing ‘dotnet.exe --version’ I get this:

So why is there no subfolder ‘1.0.0’ for that version? And what does it mean.
I am a bit lost at which frameworks are installed (including different builds) and why dotnet.exe returns 1.0.0 while 1.1.0 is installed.

Hope someone can help clearing this up.


.NET Foundation Website | Blog | Projects | Code of Conduct