Is it CLR version or Framework version? What's the difference?
The CLR is the .NET Runtime.
The Framework is the .NET Class Library.
1.0 | 1.1 | 2.0 | 4.0
1.0 | 1.1 | 2.0 | 3.0 | 3.5 | 4 | 4.5 | 4.5.1 | 4.5.2 | 4.6 | 4.6.1 | 4.6.2 | 4.7
Typically, there is a 1-1 correspondence between a Framework version and a CLR version. E.g. Framework 4.x, is usually built on CLR 4.x.
There are exceptions. Framework versions 3.0 and 3.5 were built on CLR version 2.0.
clrver.exe
. c:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.7 Tools\x64>clrver Microsoft (R) .NET CLR Version Tool Version 4.7.2046.0 Copyright (c) Microsoft Corporation. All rights reserved. Versions installed on the machine: v2.0.50727 v4.0.30319
PS C:\Users\Zuga> $ver = $PSVersionTable.CLRVersion PS C:\Users\Zuga> $ver Major Minor Build Revision ----- ----- ----- -------- 4 0 30319 42000
PS C:\Users\Zuga> $ver = ([System.Environment]::Version) PS C:\Users\Zuga> $ver Major Minor Build Revision ----- ----- ----- -------- 4 0 30319 42000
Program output: