2016-02-11 50 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。

相關問題