Determine framework (CLR) version of assembly

Klaus Byskov Pedersen picture Klaus Byskov Pedersen · Feb 22, 2010 · Viewed 38.5k times · Source

From the command line (or by any means really), how can I determine which CLR version a .NET assembly requires?

I need to determine if an assembly requires 2.0 or 4.0 CLR version.

Answer

Darin Dimitrov picture Darin Dimitrov · Feb 22, 2010

ildasm.exe will show it if you double-click on "MANIFEST" and look for "Metadata version". By default, it's the version that the image was compiled against.