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 4.0.0.0
Xamarin.IOS: Custom implementation using AFNetworking handler * System.Net.Http version is 2.0.5.0
Xamarin.Android: Custom implementation using OkHTTP * System.Net.Http version is 2.0.5.0

But I get

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

Is it possible to do it ?

Sign In or Register to comment.