c# - HttpClient missing from .Net portable subset while creating PCL in Xamarin -
I have created a portable class library in Xeramin and want to use it for the Android app. I want to use HttpClient
inside this PCL I've added Microsoft HTTTP client libraries
to NuGet package manager. Now I will call .net portable subset
Can add to my context. But somehow I still can not use the HTTP client
and this Not even in portable subsets.
In addition, my current profile
is PCL 4.0-profile 158
. If I change the profile to 4.5, the zaminin crashes and the solution does not open
Can anyone help me with this? Thank you.
The goal of a simple solution is .NET 4.5, the Windows Store app (Windows 8.1), XMERIN IOS, and XMERIN Android (4.5-Profile 7), you will not need the HTTP client newgate package to receive those APIs.
If you try to choose a 4.5 profile, please make sure that you are using the latest version and then report the bug, about how it repro and details about what happens. with.
In addition, the HTTP client newgate package should allow you to use HTT clients from a PCL profile. Make sure you are using the latest version of NuGet. ".NET Portable Subset" should always appear in your reference for a PCL, which is not related to the NuGet package. When you install the HttpClient NuGet package, you should also see the context of System.Net.Http and other assemblies in your reference.
Comments
Post a Comment