Can I find for what purpose a .NET dll was created by looking at a file?

I have a bit of a mess with projects coming in 4.0 to 3.5

Is it possible to find out which version of .NET the dll was built in a file (not from the code!)?

+5
source share
3 answers

You can use ildasm.exe :

ildasm assembly.dll

Then double-click MANIFEST and see the version:

  • Metadata version: v4.0.30319 (CLR 4.0, which means .NET 4.0)

  • Metadata version: v2.0.50727 (CLR 2.0, which means .NET 2.0 to .NET 3.5)

+8
source

Ildasm (supplied with VS) can show you which version of the DLL modules they reference.

+1
source

All Articles