S. Koshelnyk
S. Koshelnyk

Reputation: 506

Failed to resolve RestSharp.RestClient dotnetStandard2.0 project with Xamarin.iOS

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?

Upvotes: 0

Views: 116

Answers (1)

S. Koshelnyk
S. Koshelnyk

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

Related Questions