【问题标题】:How to add a Service Reference to a Portable Class Library project targeting Windows Phone 8?如何向面向 Windows Phone 8 的可移植类库项目添加服务引用?
【发布时间】:2012-11-26 22:54:27
【问题描述】:

我看到一个奇怪的行为,想知道是我做错了什么还是事情就是这样。使用 PCL 时,我的目标是 Windows Phone 7。此时,我可以添加服务引用。将目标更改为 Windows Phone 8。此时,我无法再添加服务引用。

有没有办法将服务引用添加到针对 WP8 的 PCL 项目?

提前致谢。

【问题讨论】:

    标签: windows-phone-8 portable-class-library


    【解决方案1】:

    请允许我在这里回答我自己的问题。不,没有办法。为了解决这个问题,我转向基于接口的设计模式,我可以将服务传递给库。

    【讨论】:

      猜你喜欢
      • 2015-01-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-07-09
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多