Microsoft has been updating .Net Framework versions from a long time and we’ve updated from .Net 1.0 to 4.6. We all love writing small wrappers and convert them into DLLs so that we can reuse the same code in different projects. In this post, we will see how can we get the .Net Framework version from which a specific DLL was created on.
To know this, we will make use of PowerShell. So, start PowerShell and write the following command on the prompt
- [Reflection.Assembly]::ReflectionOnlyLoadFrom("C:\SomeTest.dll").ImageRuntimeVersion
Have fun finding the .Net framework versions your DLL were built on.
Hope you like this blog post.



Arjun MandavkarPosted Jun 5, 2025, 3:17 AM EDT
The version you've got "v4.0.30319" is a CLR version not framework version.
Rod FalangaPosted Aug 7, 2023, 1:01 PM EDT
I entered the command you gave in my PowerShell prompt, but I got this error message: "ReflectionOnly loading is not supported on this platform"
Nitesh KejriwalPosted Aug 18, 2015, 11:29 AM EDT
Thanks Santha!
Santhakumar MunuswamyPosted Aug 18, 2015, 10:50 AM EDT
Nice one
Nitesh KejriwalPosted Aug 18, 2015, 12:21 AM EDT
Thanks Shakti Saxena
Shakti SaxenaPosted Aug 17, 2015, 10:43 PM EDT
nice share :)
Nitesh KejriwalPosted Aug 17, 2015, 8:44 PM EDT
Thanks Nilesh Jadav
Nilesh JadavPosted Aug 17, 2015, 12:26 AM EDT
Nice share sir