WhiteJoker
WhiteJoker

Reputation: 37

Using RestSharp cross-platform using Xamarin

I'm using Xamarin to develop a cross-platform mobile app. To communicate with our REST-service I'd like to create a shared project between these platforms to have a service access layer. The problem is that RestSharp has different projects for different platforms. How can I create a shared project while still using the platform-specific libraries. Does that make sense?

Upvotes: 1

Views: 1091

Answers (1)

valdetero
valdetero

Reputation: 4652

I tried this exact thing a few months ago. I ran into problems when trying to use my "Service Library" on WP8 because of the RestSharp dependency. If I had it to do over, I would do just like the link that @user1010710 mentioned in the comment and use HttpClient.

Upvotes: 0

Related Questions