无法为移动应用安装RestSharp到Visual Studio的Xamarin [英] Can't install RestSharp for Mobile Apps into visual Studio for Xamarin

查看:1174
本文介绍了无法为移动应用安装RestSharp到Visual Studio的Xamarin的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用 restSharp 我的项目到Visual Studio中的 Xamarin ,但我得到这个错误:

I want to use restSharp for my project into visual studio for Xamarin, but I got this error :

安装'RestSharp 105.0.0。成功安装RestSharp 105.0.0。添加RestSharp 105.0.0来Wikeepet。卸载RestSharp 105.0.0。成功卸载RestSharp 105.0.0。
  安装失败。回滚...无法安装程序包'RestSharp
  105.0.0。您正在尝试这个软件包安装到一个项目,目标的便携式net45 + WIN + wpa81 + WP80 + MonoAndroid10 + MonoTouch10',但
  包不包含任何程序集引用或内容文件
  这是与该框架相兼容。欲了解更多信息,请联系
  包的作者。

Installing 'RestSharp 105.0.0'. Successfully installed 'RestSharp 105.0.0'. Adding 'RestSharp 105.0.0' to Wikeepet. Uninstalling 'RestSharp 105.0.0'. Successfully uninstalled 'RestSharp 105.0.0'. Install failed. Rolling back... Could not install package 'RestSharp 105.0.0'. You are trying to install this package into a project that targets 'portable-net45+win+wpa81+wp80+MonoAndroid10+MonoTouch10', 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.

我谟是一个移动应用:空白应用程序(Xamarin.forms便携式)

My projet is a Mobile apps : Blank Apps (Xamarin.forms Portable)

任何帮助是AP preciated。

Any help is appreciated.

推荐答案

所以,我找到了答案,这要​​归功于用户1在评论楼上。

So I found the answer, thanks to User1 in the comments upstair.

答案很简单:没有什么对RestSharp在PCL。如果我想使用RestSharp,你需要一个接口或只安装3引用和编码的几行到每一个项目!

The answer is easy : There is nothing for RestSharp in a PCL. If I want to use RestSharp, you need a interface or just install 3 references and coding few lines into each projects !

这篇关于无法为移动应用安装RestSharp到Visual Studio的Xamarin的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆