<p>I've got an executable file, and I would like to know which version(s) of the Microsoft .NET Framework this file needs to be started.</p>
<p>Is there an easy way to find this information somewhere?</p>
<p>(So far I tried <a href="https://en.wikipedia.org/wiki/ILDASM#Metadata_storage" rel="noreferrer">ILDASM</a> and <a href="https://support.microsoft.com/kb/177429" rel="noreferrer">DUMPBIN</a> without any luck.)</p>

I think the closest you can reliably get is to determine what version of the
CLR
is required. You can do this by using ILDASM and looking at the "MANIFEST" node or Reflector and looking at the dissasembly view of the "Application.exe" node as IL. In both cases there is a comment that indicates the CLR version. In ILDASM, the comment is "// Metadata version" and in Reflector the comment is "Target Runtime Version".
Here are examples for a .NET WinForms application named WindowsFormsApplication1.exe:
ILDASM:
```
```
// 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
}
.assembly extern System
{
  .publickeytoken = (B7 7A 5C 56 19 34 E0 89 )                         // .z\V.4..
  .ver 2:0:0:0
}
```
```
Reflector:
```
```
.module WindowsFormsApplication1.exe
.subsystem 0x0002
// MVID: {CA3D2090-16C5-4899-953E-4736D6BC0FA8}
// Target Runtime Version: v2.0.50727
```
```
You can also look at the list of referenced assemblies and look for the reference with the highest version number.
Again, using ILDASM looking at the "MANIFEST" node data:
```
```
.assembly extern System.Drawing
{
  .publickeytoken = (B0 3F 5F 7F 11 D5 0A 3A )                         // .?_....:
  .ver 2:0:0:0
}
.assembly extern System.Core
{
  .publickeytoken = (B7 7A 5C 56 19 34 E0 89 )                         // .z\V.4..
  .ver 3:5:0:0
}
```
```
And using Reflector, looking at the dissambly (still as IL) for each reference listed:
```
```
.assembly extern System.Core
{
    .ver 3:5:0:0
    .publickeytoken = (B7 7A 5C 56 19 34 E0 89)
}
```
```
By finding the reference with the highest version metadata you can determine what version of the Framework that reference came from, which would indicate that you need the same version of the Framework installed for the application to run. That being said, I wouldn't treat this as 100% reliable, but I don't think it will change any time soon.