I used to use HttpWebRequest in my library (PCL), but since HttpClient is now fully supported across platforms, I decided to revise my code to use HttpClient. On Windows platorms everything works fine, but when I build a test app for Android, it hangs in the simulator. Perhaps I am doing something wrong, so I'd like to clarify a few things.
Do you I need to reference any of those NuGet packages on Mono? I checked portable HttpClient Xamarin sample, and the test app doesn't reference any of those. Are there any circumstances when some of these packages need to be referenced by the host app? My PCL references them, will it be sufficient?
When I build the Android app, I get warnings that the project must install package Microsoft.Net.Http and Microsoft.Bcl.Async. And if I do, it doesn't compile complaining about duplicate references to some assemblies (e.g. System.Runtime)
Are there any known obstacles/problems with using HttpClient from a PCL on Mono?
It would be great to find an example of an application that uses a PCL referencing HttpClient via NuGet. A Xamarin HttpClient references HttpClient directly.
Thanks in advance