2014-12-03 51 views
1

试图将软件包RestSharp添加到Xamarin iOS应用程序中。接收错误:在Xamarin iOS应用程序中安装RestSharp时出错 - 无法安装软件包

Could not install package 'RestSharp 105.0.1'. 
You are trying to install this package into a project that targets 
'Xamarin.iOS, Version=v1.0' but the package does not contain any assemblies 
compatible with the framework. 
+0

您是否在使用Xamarin.iOS Unified项目? – Luca 2014-12-03 07:33:36

回答

2

NuGet.org的RestSharp NuGet包不包含任何与iOS兼容的程序集。

有一个RestSharp component可从Xamarin的组件商店获得,您可以使用它。

另一个选择是找到一个不同的NuGet包,它提供了一个可移植的类库。在NuGet.org上有一些便携版本的RestSharp可用