Medium Feed

 

Monday, September 14, 2015

How to find Runtime version of a DLL

What is Runtime version: ?

Runtime version is the .Net framework version that the library was built against. 

We can be able to find runtime version of our custom DLL using assembly reflection:

Sample code:

 System.Reflection.Assembly myDll = System.Reflection.Assembly.ReflectionOnlyLoadFrom("C:\\mySolution.dll");
            Console.WriteLine(myDll.ImageRuntimeVersion);\


No comments:

Post a Comment