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 install and run multiple versions of the . NET Framework on a computer. You can install the versions in any order.
NET Framework 4.5 is backward-compatible with applications that were built with the . NET Framework versions 1.1, 2.0, 3.0, 3.5, and 4.
NET Framework 4.7 from any installer. . NET Framework 4.8 is backwards compatible and is capable of running applications specifically targeted for .
NET Framework 4.5 (or one of its point releases) runs side by side with versions 1.1, 2.0, and 3.5, and is an in-place update that replaces version 4. For apps that target versions 1.1, 2.0, and 3.5, you can install the appropriate version of . NET Framework on the target machine to run the app in its best environment.
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.)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With