FubarDevelopment / restsharp.portable

Some kind of a RestSharp port to PCL
BSD 2-Clause "Simplified" License
96 stars 33 forks source link

Where is RestClient? #96

Closed im1dermike closed 7 years ago

im1dermike commented 7 years ago

I installed FubarCoder.RestSharp.Portable.Core into my .netstandard project. After importing the RestSharp.Portable namespace, I have access to the RestRequest object, but I can't figure out how to import the namespace for RestClient.

fubar-coder commented 7 years ago

You need the implementation package too. Either FubarCoder.RestSharp.Portable.HttpClient or FubarCoder.RestSharp.Portable.WebRequest. Be aware that those packages don't support all features on netstandard1.1. You should use the implementation packages in a project targeting netcoreapp1.x, net4x, or xamarin android/ios and only use the IRestClient interface in the PCL or netstandard projects.