.Net Framework Version - How to find out?

  • Thread starter Thread starter mehdi_mousavi
  • Start date Start date
M

mehdi_mousavi

Hi,
Consider a .net DLL and/or .EXE file. Is there anyway to find out the
target version of the .NET framework that the mentioned .dll or .exe
file addresses?

Any help would be highly appreciated,

Cheers
Mehdi
 
Hello mehdi_mousavi,

Either by analyzing the PE header of the file (see my sample there
http://groups.google.com/group/micr...0f1037?lnk=st&q=&rnum=2&#doc_fe54e9dde2c3b661)

or using Assembly.ImageRuntimeVersion method


m> Hi,
m> Consider a .net DLL and/or .EXE file. Is there anyway to find out
the
m> target version of the .NET framework that the mentioned .dll or .exe
m> file addresses?
---
WBR,
Michael Nemtsev :: blog: http://spaces.msn.com/laflour

"At times one remains faithful to a cause only because its opponents do
not cease to be insipid." (c) Friedrich Nietzsche
 
The result from Assembly parser test.

..Net1.1:
test5.exe
Is assembly: True
Has entry point: True
Has strong name: False
Is IL only: True
Runtime major ver (should be 2): 2
***Runtime minor ver (should be 0): 0***

..Net2.0:
IAP App.exe
Is assembly: True
Has entry point: True
Has strong name: False
Is IL only: True
Runtime major ver (should be 2): 2
***Runtime minor ver (should be 0): 5***

the Runtime minor ver is different.
you can determined the target version of the .NET framework that the
mentioned assembly .:)

Sincerely,
simida


mehdi_mousavi 写é“:
 
Back
Top