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, 7:17 AM
The version you've got "v4.0.30319" is a CLR version not framework version.
Rod FalangaPosted Aug 7, 2023, 5:01 PM
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, 3:29 PM
Thanks Santha!
Santhakumar MunuswamyPosted Aug 18, 2015, 2:50 PM
Nice one
Nitesh KejriwalPosted Aug 18, 2015, 4:21 AM
Thanks Shakti Saxena
Shakti SaxenaPosted Aug 18, 2015, 2:43 AM
nice share :)
Nitesh KejriwalPosted Aug 18, 2015, 12:44 AM
Thanks Nilesh Jadav
Nilesh JadavPosted Aug 17, 2015, 4:26 AM
Nice share sir