【发布时间】:2016-10-23 19:25:54
【问题描述】:
我有一个更新的旧 Xamarin 表单项目,它使用 Microsoft Azure 的移动应用服务(以前使用 Azure 移动服务)。
工作正常,但经过清理和重建后,我现在每次尝试运行它时都会收到此错误(我使用的是 Xamarin Studio)
Could not load file or assembly 'System.Net.Http.Primitives, Version=1.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
Microsoft.Azure.Mobile.Client 和 SQLiteStore 的版本为 2.0.1。我尝试通过 NuGet 删除和读取程序集,但没有任何运气。
有人看到或解决了这个问题吗?
【问题讨论】:
-
我做了 - 但是 Microsoft.BCL.Build 1.0.21 和 Microsoft.Net.Http 2.2.29 都已经在项目中,我仍然有一个错误,错误 CS0012 The type 'HttpMessageHandler'在未引用的程序集中定义。您必须添加对程序集“System.Net.Http, Version=1.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”的引用。
标签: azure xamarin xamarin.ios xamarin.forms azure-mobile-services