How to find out which version of dotnet framework is used in an Assembly ?
Consider I have xyz.dll. I need to find out in which version of .net framework is used to build this xyz.dll.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Suthish NairPosted Oct 25, 2010, 6:16 AM
Manikavelu VelayuthamPosted Oct 25, 2010, 5:52 AM
I have analyzed the dll through ILDASM also, there also only the CLR version is provided. I mean 2.0 or 4.0
Suthish NairPosted Oct 25, 2010, 5:50 AM
I already given the code, there are couple of methods like GetName().Version will give the framework version also. why dont put a breakpoint and check...
Manikavelu VelayuthamPosted Oct 25, 2010, 5:00 AM
It wont show the target framework like 3.0 or 3.5 like that.
Because 3.0 & 3.5 falls under the category 2.0.
But i need to findout the target framework.
Suthish NairPosted Oct 25, 2010, 4:01 AM
Suthish NairPosted Oct 21, 2010, 2:31 PM
Assembly ambly = System.Reflection.Assembly.ReflectionOnlyLoadFrom("G:\\AjaxControlToolkit.dll");Response.Write(ambly.ImageRuntimeVersion);