开发者

wcf contract location

开发者 https://www.devze.com 2023-03-06 23:34 出处:网络
I have the following setup: Main assembly that contains a WcfService and IWcfService contract. Satellite assembly that creates a channel and invokes a method on IWcfService. In order to get that cont

I have the following setup: Main assembly that contains a WcfService and IWcfService contract. Satellite assembly that creates a channel and invokes a method on IWcfService. In order to get that contract it references the Main assembly.

The problem: Up until recently both assemblies were compiled against .NET 2.0. Now the Main assembly needs to be compiled against .NET 4.0. The Satellite assembly cannot be targeting 4.0 because it has to run within 2.0 process (not mine).

The question: In what other way I can provide the IWcfService contract to the satellite ass开发者_如何学Goembly so I don't have to reference the Main assembly?

Thanks, Roman


Would it work to just do it with a third assembly that contains just the IWcfService contract and is referenced by both Main and Satellite assemblies? The new assemblye would target .NET 2.0 so it could be referenced from both.

0

精彩评论

暂无评论...
验证码 换一张
取 消