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!)?
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)
Ildasm (supplied with VS) can show you which version of the DLL modules they reference.
, dll Assembly ImageRuntimeversion
http://msdn.microsoft.com/en-us/library/system.reflection.assembly.imageruntimeversion.aspx