0

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. enter image description here Pcl code is following:

enter image description here

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?

S. Koshelnyk
  • 478
  • 1
  • 5
  • 20

1 Answers1

1

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.

S. Koshelnyk
  • 478
  • 1
  • 5
  • 20