Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

HttpClient in iOS, Android, and WP8 with a Portable Class Library

$
0
0

I've been reading, and trying, and pulling my hair out on this. I'm trying to get the HttpClient to run in a PCL library that supports iOS, Android, and WP8. I can get the HttpClient when I have iOS & Android by themselves in a PCL project. When I add WP8, the HttpClient becomes a problem. I got to nuget and add the Microsoft.Net.Http package and I get an install error due to some of the other packages that need to be installed. My next attempt is to remove the Xamarin projects as possible clients. The Microsoft.Net.Http package goes ahead and installs. I then re-add the Xamarin project types. I get errors in the build process regarding ambiguous references. I take out the references, and then get messages that I need to add libraries to the client projects. So, how do I get the HttpClient into a PCL library and have it actually work in WP8? Is this realistically possible? Am I missing something? I read where some people say that it works, but from reading this forum, I have my doubts. Any suggestions or directions are welcome. Thanks for listening to me whine.

Wally


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>