From the command line (or by any means really), how can I determine which CLR version a .NET assembly requires?
I need to determine if an assembly requires 2.0 or 4
I'd suggest using ReflectionOnlyLoadFrom() insted of LoadFrom()
It has an advantage that it can load x64 and ia64 assemblies when running on x86 machine, while LoadFrom() will fail to do that.
Though it still won't load .Net 4.0 assemblies from a 2.0 powershell.