Get .NET Framework Version of a DLL

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

  1. [Reflection.Assembly]::ReflectionOnlyLoadFrom("C:\SomeTest.dll").ImageRuntimeVersion  
The above snippet will display the .Net framework version. You can see it in the display below –

powershell

Have fun finding the .Net framework versions your DLL were built on.

Hope you like this blog post.

Rebin Infotech
Think. Innovate. Grow.