Unable to add System.Net.Http link to Xamarin.iOS library project

I am using plagin Xamarin Visual Studio. I have a Xamarin iOS library project, and I need to use System.Net.Http to compile it. However, I cannot add it as a link. I upgraded my Xamarin Studio to the Alpha version, but still don't see System.Net.Http in the Assemblies list when trying to add a link.

Any help here would be a GREAT estimate, as I'm a few inches from getting this implemented, but I'm stuck on this one link.

Is it available in Visual Studio (with Xamarin Pluggin installed) or is it only in Xamarin Studio?

Thanks in advance for your help!

+4
source share
2 answers

WOW !! What job.

Ok, here is the solution. It appears that the Visual Studio pluggin does NOT update when you update Xamarin Studio on your window. HOWEVER, when you go to your Mac build server and upgrade Xamarin to the Alpha version, then open the Xamarin project in Visual Studio, it will suggest that the build server and Pluggin be different versions and allow you to upgrade. When you update, after closing the visual studio, then open the visual studio again, VOILA !!! The System.Net.Http link is now available in the Assemblies section when adding a link.

So, the solution is to upgrade your MAC version of Xamarin Studio to Alpha, and then Visual Studio will prompt you to upgrade. Upgrade it and you are golden!

It seems like there should be an easier way, but it worked.

+1
source

I think you cannot add the System.Net.Http link. You should try this RestSharp Simple REST Client to use the HTTP API.

RestSharp makes it easy to use a wide range of services on the Internet via HTTP, for example: Amazon, Facebook or even Twitter ...

http://components.xamarin.com/view/restsharp

-1
source

Source: https://habr.com/ru/post/1491671/


All Articles