Comments on: 2 Ways to Check .NET Framework Version Using Command Line https://www.itechtics.com/check-net-framework-version-command-line/ Making Technology Accessible Wed, 31 Aug 2022 13:02:30 +0000 hourly 1 https://wordpress.org/?v=6.4.1 By: Derrick Reisdorf https://www.itechtics.com/check-net-framework-version-command-line/#comment-158089 Fri, 15 May 2020 16:38:44 +0000 https://www.itechtics.com/?p=31963#comment-158089 In reply to Balwider Singh.

CLRVersion is not your .NET version. Anything .NET 4 and above (4, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2. 4.8) will show CLRVersion 4.0. Any .NET below that will show CLRVersion 2. (.NET 1.1 = CLRVersion 1.1; .NET 1.0 = CLRVersion 1.0)

https://docs.microsoft.com/en-us/dotnet/framework/migration-guide/versions-and-dependencies

Here’s how MS recommends you find your .NET version:
https://docs.microsoft.com/en-us/dotnet/framework/migration-guide/how-to-determine-which-versions-are-installed

]]>
By: Steve Si https://www.itechtics.com/check-net-framework-version-command-line/#comment-151721 Sat, 11 Apr 2020 09:47:14 +0000 https://www.itechtics.com/?p=31963#comment-151721 Here is a cmd script which works on English Windows OS (other languages not tested).

@echo off
set “mycmd=powershell -ExecutionPolicy Bypass echo $psversiontable ^| find /i “CLRVersion””
for /f “tokens=2,3,4 delims=. ” %%a in (‘%mycmd%’) do set dotnetver=%%a.%%b.%%c
set “mycmd=%windir%Microsoft.NETFrameworkv%dotnetver%MSBuild.exe -version ^| find /i “Build””
for /f “tokens=6,7 delims= ” %%a in (‘%mycmd%’) do set dotnetver=%%a
echo %dotnetver%

]]>
By: theapprenticeco https://www.itechtics.com/check-net-framework-version-command-line/#comment-105202 Thu, 17 Oct 2019 22:33:24 +0000 https://www.itechtics.com/?p=31963#comment-105202 excellent solution for a company that seems to profit on messing everything on every update.

]]>
By: Balwider Singh https://www.itechtics.com/check-net-framework-version-command-line/#comment-34703 Wed, 09 Jan 2019 06:26:43 +0000 https://www.itechtics.com/?p=31963#comment-34703 The simplest possible way is to open Powershell and type:
$psversiontable

You will get “CLRVersion” entry which is your installed .net Framework version.

]]>
By: Anane Desire https://www.itechtics.com/check-net-framework-version-command-line/#comment-29908 Sun, 07 Oct 2018 16:25:25 +0000 https://www.itechtics.com/?p=31963#comment-29908 Thanks for the sharing

]]>
By: Koranteng Edward https://www.itechtics.com/check-net-framework-version-command-line/#comment-29524 Sat, 29 Sep 2018 16:38:16 +0000 https://www.itechtics.com/?p=31963#comment-29524 Tanks you for making me to know the use of .Net Framework using cmd line.
I really enjoy every bit of it..

]]>