Hossein
Hossein

Reputation: 26014

How can i understand what version of dotnet a .net based application is using?

How can i find about a dot net applications prerequisite? lately i moved an application which works fine on my system to another system and upon executing it, the application crashed.I tried installing dot-net frameworks 4, 3.5sp1 and 3.5 ( couldn't install 3 because it was complaining about a newer version being installed ).But still no luck. So how can i know about it in first place?

Upvotes: 2

Views: 288

Answers (1)

hmqcnoesy
hmqcnoesy

Reputation: 4224

You can open ildasm.exe, drag and drop the assembly onto the IL DASM window. Then double-click the MANIFEST node in the window and you will see its referenced assemblies and their version information.

EDIT

If you don't have ildasm.exe, another good free option is dotPeek from JetBrains. You can drop your assembly onto it's assembly explorer, right-click it and select properties. You will see the .net framework version in the properties window.

And I have noticed that if you open a .net assembly with a text editor and do a "find" for .NETFramework you can pretty reliably find the framework version in the file.

Upvotes: 4

Related Questions