通过自助托管WCF服务调用.NET 4的.NET 3.5WCF、NET

2023-09-04 11:53:47 作者:无人相拥

我有一个.NET 3.5应用程序。它不能迁移到4。

I have a .net 3.5 application. It cannot be migrated to 4.

我需要从我的应用程序调用.NET 4集。

I need to call a .net 4 assembly from my application.

我想创建一个新的可执行的.NET 4中其中有一个自我托管WCF服务,是在4组件的适配器。然后我3.5的应用程序可以执行外部程序并调用该程序集。

I thought to create a new executable in .net 4 which has a self hosted wcf service that is an adapter over the 4 assembly. My 3.5 app can then execute the external process and call the assembly.

这是一个有点难看 - ?任何更好的主意。

This is a little ugly - any better idea?

推荐答案

谷歌说,这是可能的。它似乎还有在.NET 4.0中的新功能叫做INPROC SXS(在由侧工艺侧)。

Google says it is possible. It seems there is a new feature in .Net 4 called Inproc Sxs (In process side by side).

看一看这里: http://social.msdn.microsoft.com/Forums/en/netfxgeneral$p$prelease/thread/6f699c4f-58f5-4f6f-8a8c-08482e5f4478 和这里 : http://blogs.msdn.com/b/clrteam/archive/2009/06/03/in-process-side-by-side-part1.aspx

Have a look here : http://social.msdn.microsoft.com/Forums/en/netfxgeneralprerelease/thread/6f699c4f-58f5-4f6f-8a8c-08482e5f4478 and here : http://blogs.msdn.com/b/clrteam/archive/2009/06/03/in-process-side-by-side-part1.aspx