2016-02-11 48 views
2

我想在我的IOS项目上安装NuGet包System.Net.Http。但遇到此错误:Xamarin.iOS - 无法安装软件包'System.Net.Http 4.0.0'该软件包不包含任何程序集引用

Error: Could not install package 'System.Net.Http 4.0.0'. You are trying to install this package into a project that targets 'Xamarin.iOS,Version=v1.0', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author

我在我的SharedProject中使用HttpClient下载和解析网页。我可以将引用添加到IOS包中,但是当我调试项目时,HttpClient始终是“未知标识符”。

我的解决方案运行在PERFEKT Android的,通用的应用程序和Windows Phone 8.1

我使用VS2015。

回答

0

我通过在Xamarin Studio中安装包来解决此问题,然后切换回Visual Studio。

相关问题