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!) ?
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!) ?
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)
Ildasm (comes with VS) can show you what version of the framework DLLs it's referencing.
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
© 2022 - 2024 — McMap. All rights reserved.