-3

How can I know which version of Framework requires to be installed in the PC to execute a application which is developed in .NET but not developed by myself?
How to know which version of FW needs that app?

Raziel
  • 444
  • 6
  • 22
ElektroStudios
  • 19,105
  • 33
  • 200
  • 417
  • 1
    is it really a question of a person who already got 1500+ points on stack 0_o? – Freak May 14 '13 at 08:10
  • Sorry, the question is ambiguous. I only wanted clarification. If he has the source code, you can check it out in Visual Studio, for example, if not check this out http://stackoverflow.com/questions/325918/how-to-find-out-which-version-of-the-net-framework-an-executable-needs-to-run – Dave May 14 '13 at 08:10
  • @freak well you have the answer? not? then you are like me. – ElektroStudios May 14 '13 at 08:11
  • @ElektroHacker first make it a question then ask for answer – Freak May 14 '13 at 08:12
  • @Dave Rook I don't have the source that's why I don't know the targeting FW... – ElektroStudios May 14 '13 at 08:12
  • Please [see this](http://stackoverflow.com/questions/6341912/how-to-find-net-framework-of-application).It may help you – Freak May 14 '13 at 08:18
  • @ElektroHacker, I didn't notice your score, no offense was meant by my question to clarify your post :) . – Dave May 14 '13 at 08:21

2 Answers2

1

It is easy using ILDASM (description on MSDN). Run it and open selected exe or dll. Select MANIFEST and open it (double click) No try to find lines like this (for .NET 4.0):

// Metadata version: v4.0.30319
.assembly extern mscorlib
{
  .publickeytoken = (B7 7A 5C 56 19 34 E0 89 )                         // .z\V.4..
  .ver 4:0:0:0
}

or like this (for .NET 2.0):

// Metadata version: v2.0.50727
.assembly extern mscorlib
{
  .publickeytoken = (B7 7A 5C 56 19 34 E0 89 )                         // .z\V.4..
  .ver 2:0:0:0
}
Piotr Stapp
  • 19,392
  • 11
  • 68
  • 116
1

I use the decompiler dotPeek - it's free from JetBrains. This will show you after you decompile the exe.

However, as per my comments, check this post out on Stack Overflow How to find out which version of the .NET Framework an executable needs to run?

Community
  • 1
  • 1
Dave
  • 8,163
  • 11
  • 67
  • 103