Click here to Skip to main content
15,662,823 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How do I know the current running exe framework version.


1 solution

For an assembly, you can check its ImageRuntimeVersion:[^].

By "current running" you may mean different assemblies. It could be the assembly which called the currently executing method, the assembly executing at the moment, or it could be the entry-point assembly; in general case, those assemblies are different:[^],[^],[^],[^].

Share this answer
Ramug10 6-Mar-14 2:02am    
Thanks for your valuable time.

my problem not resolved. What I want is I have one "xxxxx.exe" currently this exe is running in my machine windows services somebody installed it, I need to know the framework version of it.
Sergey Alexandrovich Kryukov 6-Mar-14 2:06am    
Only because you did not formulate all you had to to. Isn't it obvious what else to do. Load this EXE using Assembly.LoadFrom, obtain instance of the assembly (it may actually appear to be not a .NET assembly), and do with that variable what I described.
Doesn't it finally resolve your problem?
Ramug10 6-Mar-14 2:29am    
Assembly.LoadFrom() is working
thanks :).
Sergey Alexandrovich Kryukov 6-Mar-14 8:26am    
Sure. Will you accept the answer formally (green "Accept" button)?
Ramug10 6-Mar-14 8:29am    
yaa sure..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900