gpt4 book ai didi

c# - 从 WP8 后台代理引用 WCF 服务

转载 作者:太空宇宙 更新时间:2023-11-03 15:48:23 26 4
gpt4 key购买 nike

我偶然发现了从 Windows Phone 后台代理引用 WCF 服务的问题。

我的解决方案中有两个项目

  1. Windows 手机应用
  2. 后台代理

我在我的 WP 应用程序中引用了两项服务。我希望后台代理定期调用服务中的方法。

但是,当我向代理添加服务引用时,出现此错误

Payload contains two or more files with the same destination path 'ServiceReferences.ClientConfig'. Source files: ...\Client\WPClient\WPClient\ServiceReferences.ClientConfig ...\Client\WPClient\WPTaskAgent\ServiceReferences.ClientConfig

有没有办法消除或解决此错误?

谢谢

最佳答案

在类库中将文件 ServiceReferences.ClientConfig 的名称更改为 [projectName]_ServiceReferences.ClientConfig 对我有用。

关于c# - 从 WP8 后台代理引用 WCF 服务,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27064564/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com