Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can my .Net app reference two different versions of a .net framework library?

Say I have two projects, P4 and P3, targetting .net 4.0 and 3.5 respectively.

Each project also has a reference to System.Data. In the case of P4, it will be to System.Data v4.0.0.0 In the case of P3, it will be to System.Data v2.0.0.0

Project P4 also references P3.

If P4 is loaded and executed, it uses the .net 4.0 CLR. At runtime, references to System.Data seem to resolve to v4.0 inside both P4 and P3. I can override this by using assemblyBinding redirects, but then both P4 and P3 resolve to v2.0.

Is there any way I can configure my application so that P4 uses v4.0 and P3 uses v2.0?

like image 846
Rob Avatar asked Jan 31 '12 14:01

Rob


1 Answers

Have a look at this : In-Process Side-by-Side It might be of some help.

like image 107
Seb Avatar answered Oct 06 '22 19:10

Seb