calling .net 4 from .net 3.5 via self hosted wcf service

假装没事ソ 提交于 2019-12-10 16:33:57

问题


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

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

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?


回答1:


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

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



来源:https://stackoverflow.com/questions/5646881/calling-net-4-from-net-3-5-via-self-hosted-wcf-service

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!