Restsharp Windows Phone 8 支持和 FileNotLoad 异常
本文关键字:FileNotLoad 异常 支持 Windows Phone Restsharp | 更新日期: 2023-09-27 18:36:25
我已经将我的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()
找到了答案。
我使用了两个不同的 API,它们依赖于 RestSharp 和导入,一个版本为 103.4.0.0,另一个版本为 104.1.0.0所以我下载了后者引用它,它就像一个魅力。