通过自助托管WCF服务调用.NET 4的.NET 3.5 [英] calling .net 4 from .net 3.5 via self hosted wcf service

查看:185
本文介绍了通过自助托管WCF服务调用.NET 4的.NET 3.5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个.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).

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

这篇关于通过自助托管WCF服务调用.NET 4的.NET 3.5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆