Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.NET framework version used

Tags:

.net

I have a third-party program installed, and I want to find out what version of the .NET framework it is using.

How do I figure that out?

like image 593
Raj More Avatar asked Sep 30 '10 15:09

Raj More


2 Answers

Start up the Visual Studio 2008 Command Prompt, go to the folder your assembly is in, type corflags.exe assemblyName.dll, and you should get the following information back.

Version   : v4.0.30319
CLR Header: 2.5
PE        : PE32
CorFlags  : 1
ILONLY    : 1
32BIT     : 0
Signed    : 0
like image 129
Iain Avatar answered Sep 30 '22 10:09

Iain


I believe you can do that using ILDasm or .NET Reflector.

Open Visual Studio command prompt... Run ILDasm

If you open the Manifest, you should be able to get the .ver, and mscorlib's version should be target version. For ex. the following DLL is using 4.0

// Metadata version: v4.0.30319 .assembly extern mscorlib { .publickeytoken = (B7 7A 5C 56 19 34 E0 89 ) // .z\V.4.. .ver 4:0:0:0 }

like image 41
Rahul Soni Avatar answered Sep 30 '22 10:09

Rahul Soni