简体   繁体   中英

Can't install RestSharp for Mobile Apps into visual Studio for Xamarin

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

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.

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

Any help is appreciated.

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

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 !

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM