Forum Xamarin Cross Platform with Xamarin

PCL IHttpClientFactory but with different handlers

Here is what I'm trying to implement with no success.

PCL: IHttpClientFactory => HttpClient CreateHttpClient() * System.Net.Http version is
Xamarin.IOS: Custom implementation using AFNetworking handler * System.Net.Http version is
Xamarin.Android: Custom implementation using OkHTTP * System.Net.Http version is

But I get

Error CS1705: Assembly http.core, Version=1.0.5041.30917, Culture=neutral, PublicKeyToken=null' referencesSystem.Net.Http, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' which has a higher version number than imported assembly `System.Net.Http, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' (CS1705) (http.test)

Is it possible to do it ?

Sign In or Register to comment.