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

Adding microsoft.net.http to an application

$
0
0

Hi,

I'm currently part way through porting an iOS app over to macOS. Pretty much everything is done, but when I come to testing I'm getting this error

Method not found: void System.Net.Http.HttpClientHandler.set_AutomaticDecompression(System.Net.DecompressionMethods)

I'm using FubarRestSharp in my mvvm project which from memory uses Microsoft.Net.Http for the decompression. The answer to get rid of this error is to add the Microsoft.Net.Http package from nuget but the problem is that the version on nuget (2.2.29) isn't happy with macOS. I've tried adding a handler in the code calling the web service, but that's not cutting it either.

I've tried just adding a reference back to the packages, but that's not working either.

Any ideas?


Viewing all articles
Browse latest Browse all 204402

Trending Articles



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