我需要澄清两种情况:
我找不到可靠的消息来源,说明无法加载两个版本的 .NET 运行时,并且 Microsoft 的文档在此问题上非常含糊。
最佳答案
不——你不能两次将 CLR 加载到同一个进程中。请参阅 CLR Hosting 的文档
As with earlier versions of the runtime, the CorBindToRuntimeEx function initializes the runtime. You can choose which version of the runtime to load, but a process can host only one version.
关于.net - 是否可以在同一进程中加载两个版本的 .NET 运行时?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/201663/