【问题标题】:Unable to add API DLL as a reference to the windows phone 8无法添加 API DLL 作为对 windows phone 8 的引用
【发布时间】:2014-08-28 10:47:00
【问题描述】:

我正在开发一个 Windows Phone 应用程序,因为我正在使用一个 API DLL,我需要使用该 API DLL 中的所有类、方法、属性,并且当我添加 API DLL 作为对我的 Windows Phone 应用程序的引用时,它提供异常为“无法将对更高版本或不兼容程序集的引用添加到项目中”。 我该如何解决这个问题?任何人都可以为此提出解决方案。

【问题讨论】:

    标签: windows-phone-8


    【解决方案1】:

    您只能将Windows Phone/Silverlight Class LibraryPortable Class Library for Windows Phone 添加到您的Windows Phone 项目,因为标准.NET Framework 中的某些API 在Windows Phone 中不可用。

    如果您的 API 库面向标准 .NET Framework,则需要重写它以重新面向 Windows Phone 兼容框架。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-03-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-01-12
      • 2012-11-08
      • 1970-01-01
      • 2013-01-20
      相关资源
      最近更新 更多