Reputation: 506
There are 2 projects in my solution. Xamarin iOS native and dotnetstandard 2.0. I need to use RestSharp in dotnetstandard 2.0 project. But when I create variable RestClient client;
it causes an error.
Pcl code is following:
When I remove this variable my project builds successfully. I have also tried to use RestSharp.Portable but faced another issues. What can I do?
Upvotes: 0
Views: 116
Reputation: 506
I solved this also adding Restsharp nuget to ios project from which I called restsharp method in the .netstandard 2.0. So you need Restsharp nugets in both projects.
Upvotes: 1