How to determine what version of framework a DLL requires?

M

Michael Bray

Sorry for the post here, but I have a quick need - I have a DLL that I
don't know what version of the framework it was built under. How can I
determine that with standard tool. Thanks!

-mdb
 
M

Mattias Sjögren

Michael,
Sorry for the post here, but I have a quick need - I have a DLL that I
don't know what version of the framework it was built under. How can I
determine that with standard tool. Thanks!

You can find the CLR version required (1.0, 1.1 or 2.0) by using the
Corflags tool in the .NET SDK (or programmatically with
Assembly.ImageRuntimeVersion).

Later frameworks (3.0 and 3.5) only add assemblies that still execute
on the 2.0 runtime, so you have to look at what assembly versions are
referenced (directly and indirectly). You can do that with Ildasm and
looking for assembly extern directives for example.


Mattias
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top