The subject says it all… If I’ve got a .NET 4.0 app, can I add a reference to 2.0/3.0/3.5 .DLL? I don’t have VS2010 installed so I can’t check myself (I’m doing research at the moment).
I’ve tried to find information on both on SO and Google, but I get conflicting answers.
Yes, you can – but if it’s a mixed mode assembly (i.e. contains a mixture of native code and .NET code) then I believe that can cause problems. (IIRC the MySql driver had this problem recently, and devs had to rebuild under .NET 4 to get it to work.)