Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't Install Package System.Net.Http from Nuget

I cannot install the package System.Net.Http I tried updating my Nuget but still same error occur by the way i'm using Visual Studio 2015 Community developing my android application

This is the error:

Could not install package 'System.Net.Http 4.0.0'. You are trying to install this package into a project that targets 'MonoAndroid,Version=v6.0', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.

Please help me. Thanks :)

like image 283
Melchizedek Avatar asked Mar 24 '26 06:03

Melchizedek


1 Answers

Currently you are not going to be able to use System.Net.Http 4.0.0 even if you managed to install it into a Xamarin Android project since Xamarin does not fully support the new .NET Core NuGet packages, such as System.Net.Http. So you should look at using another NuGet package.

You could try the Microsoft.Net.Http NuGet package instead which includes assemblies for Xamarin Android projects.

like image 172
Matt Ward Avatar answered Mar 26 '26 18:03

Matt Ward



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!