3

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 :)

1

1 Answer 1

9

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.

Sign up to request clarification or add additional context in comments.

1 Comment

Thank Very much works for me using the Microsoft.Net.Http NuGet

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.