Can I find to what target .NET dll was built looking into the file?
Asked Answered
P

3

5

I have a bit of mess with projects coming some on 4.0 some on 3.5

Is it possible to find out what version of .NET was the dll built looking into the file (not from code!) ?

Pomeroy answered 26/7, 2010 at 9:41 Comment(0)
S
8

You could use ildasm.exe:

ildasm assembly.dll

Then double click on MANIFEST and look at the version:

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

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

Sumter answered 26/7, 2010 at 9:43 Comment(1)
4.0.30319 can mean 4.5. 2.0.50727 can mean up to 4.0Vietnam
A
1

Ildasm (comes with VS) can show you what version of the framework DLLs it's referencing.

Albany answered 26/7, 2010 at 9:45 Comment(0)
P
0

If you are looking for a programmatic solution,then just load the dll into Assembly and check the ImageRuntimeversion

http://msdn.microsoft.com/en-us/library/system.reflection.assembly.imageruntimeversion.aspx

Paterfamilias answered 13/12, 2011 at 4:56 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.