Once the assembly is loaded, you can use Assembly.ImageRuntimeVersion to check the runtime version ot was complied against (stored in the metadata header).Most assemblies will also reference the version of Mscorlib.dll that was included in that runtime version, so you can also check the assembly's references with a tool such as ILDASM.
关注
比如:引用了C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll
可以判断出是2.0
to check the runtime version ot was complied against (stored in the
metadata header).Most assemblies will also reference the version of Mscorlib.dll that
was included in that runtime version, so you can also check the
assembly's references with a tool such as ILDASM.