是否有一种简单的方法可以将服务引用添加到一个程序集中,但将客户端配置保留在另一个程序集中?
我知道简单添加 WCF 服务引用的缺点(稍后我打算以另一种方式创建客户端代理),但现在我需要添加对 Silverlight 程序集的服务引用,但将配置添加到主 UI 程序集,以便它将被打包到 .xap
文件中。有没有简单的方法可以做到这一点?
I'm aware of the drawbacks of simply adding WCF service references (later I intend to create client proxies another way), but for now I need to add a service reference to a Silverlight assembly but the config to the main UI assembly so that it will be packaged into the .xap
file. Is there an easy way to do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
事实证明评论中的漩涡是正确的。经过一番实验后,我失去了这个解决方案。我还忘记提及我正在使用
.csproj
文件中的 xml 转换任务。我的最终解决方案是这样的:
vorrtex in the comments turns out to be right. I lost sight of that solution after a bit of experimentation. I had also forgotten to mention that I was using the xml transformation tasks in the
.csproj
file.My final solution is this: