Is it possible to load two versions of the .NET runtime into the same process?

There are two scenarios that I need to clarify:

  • For an executable compiled with .NET 3.5, you must use a library compiled with .NET 1.1, and the library must run in runtime 1.1.

  • For an executable compiled with .NET 1.1, you must use a library compiled with .NET 3.5.

I cannot find a reliable source stating that it is not possible to download two versions of the .NET runtime, and the Microsoft documentation is very vague in this matter.

+5
source share
3 answers

- CLR . . CLR

, CorBindToRuntimeEx . , , .

+7

.NET 4 promises, CLR In-Process Side by Side.

+3

№ 1 - (, ), , 1.1? 1.1- - -? ( - , ?)

For case # 2, is it possible to recompile application 1.1 in version 2.0 / 3.5 so that it can be in the same process?

In any case, Rob Walker is right (and I supported him) - you simply cannot place 2 versions of the runtime in the same process. So you need to get around this somehow. I would suggest that in both cases the source should be available, so recompilation and re-testing should follow.

+2
source

All Articles