【问题标题】:Restsharp Windows Phone 8 Support and FileNotLoad ExceptionRestsharp Windows Phone 8 支持和 FileNotLoad 异常
【发布时间】:2013-10-23 00:15:11
【问题描述】:

我已将我的 WP7 应用升级到 WP8,但我似乎遇到了一个问题,我找不到合适的解决方案。

我已经尝试下载 WatTmdb 源代码,更新 restsharp .dll,构建项目并尝试使用新的程序集,但我的项目使用的是 RestSharp 103.4.0.0 而不是 104.1.0.0

问题是我在这个应用程序中将 RestSharp API 与另一个 API 一起使用,它工作正常。

有什么建议吗?

Could not load file or assembly 'RestSharp.WindowsPhone, Version=104.1.0.0,     Culture=neutral, PublicKeyToken=null' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)



System.IO.FileLoadException was unhandled by user code
  HResult=-2146234304
  Message=Could not load file or assembly 'RestSharp.WindowsPhone, Version=104.1.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
  Source=WatTmdb.WindowsPhone
  StackTrace:
       at WatTmdb.V3.Tmdb..ctor(String apiKey, String language)
       at WatTmdb.V3.Tmdb..ctor(String apiKey)
       at Series.Views.Search..ctor()

【问题讨论】:

    标签: c# windows-phone-8 restsharp


    【解决方案1】:

    找到答案了。

    我使用了两个不同的 API,它们依赖于 RestSharp,导入时一个的版本是 103.4.0.0,另一个是 104.1.0.0 所以我下载了后者引用它,它就像一个魅力。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多