How to find the .Net Version the Application was created in?

How to find the .Net Version the Application was created in?
How to find the .Net Version the executatble (exe) was created in?
How to find the .Net Version the exe or the application is targeting?

I had a situation in which I had the executable file but did not have the source code. The exe was created in .Net but I did not know which version and had to find out. I wished it was as easy as to just right click on the .exe file and get the .Net Version number this exe is targeting, but it doesn’t seem to be that simple. But I found out it’s not that difficult to get this information. Microsoft has a tool named ILDASM.exe which can help you to find this information.

Where can I find the ILDASM.exe?

You should have ILDASM.exe at the following path.

If you installed the .Net Framework 2.0 SDK then you should find the ILDASM.exe at this location:

C:\\Program Files\\Microsoft.NET\\SDK\\v2.0\\Bin

If you have .Net 3.5 or above in your environment, you should be able to find your ILDASM.exe at this location:

C:\\Program Files\\Microsoft SDKs\\Windows\\v6.0A\\bin

 

Once you have located the ILDASM.exe; just double click to start the tool. This should display the IL DASM window.

Goto File à Open and open the exe you want to find the .Net version number for.

Double click on MANIFEST and it should open a new window (as shown in figure below) and look for the first line which says Metadata version: xx.x.xxxxx and that is the .Net version number the exe was created in. Refer to following figure.

 

Tags: