Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a tool out there to find out which .NET framework is installed on a PC?

Tags:

.net

I know the official way is the registry, but this is kinda timeconsuming.

I have to check installed versions on several PC's, none of them have VisualStudio , but all of them (probably) a version of .NET framework.

Since the hot water probably exists already, where can i find it?

like image 839
Peter Avatar asked Apr 12 '09 11:04

Peter


2 Answers

Here's a free lightweight tool that does it quickly - .NET Version detector 2007

If you want to do it manually, this page shows 4-5 good ways to do it. The MS Support page presents a method as simple as opening up the Framework folder and checking the versions installed (folder names)!

However, If you want to do it programmatically, the HttpBrowserCapabilities class offers a GetClrVersions() method that is accessible through the Request.Browser.GetClrVersions() call. Of course, as others have mentioned, you can always query the Navigator.UserAgent property of the Browser too, via Javascript (I think this will show you the .NET versions only in IE):

javascript:alert(navigator.userAgent)
like image 158
Cerebrus Avatar answered Sep 23 '22 03:09

Cerebrus


  1. try the homepage of smallestdotnet it is using the user agent of your browser in order to check which .net version you have.
  2. goto \Windows\Microsoft.NET\Framework\ you will see all the versions that you have.
like image 26
Shay Erlichmen Avatar answered Sep 23 '22 03:09

Shay Erlichmen