Error trying to install a package with Nuget in Visual Studio 2017

1

I have a project in Xamarin Forms and I want to consume service from an external page. I'm trying to install the package Microsoft.Net.Http to consume these services and I get the following error:

  

The package 'Microsoft.Bcl.Build 1.0.14' could not be installed. Is   trying to install this package in a project that has   'MonoAndroid, Version = v6.0' as destination, but the package does not contain   assembly references or content files compatible with   said framework. For more information, contact the   author of the package. 0]

    
asked by Cleiry Moreno 06.08.2017 в 13:34
source

1 answer

1

This occurs because Microsoft.Net.Http depends on another package called Microsoft.Bcl.Build .

For this you must go to Solution - > Manage packages for the solution - > In the "Browse" tab

First: Install the Microsoft.Bcl.Build package in its latest version 1.0.21

Second: After the first step, install the Microsoft.Net.Http package in its most recent version 2.2.29

    
answered by 05.09.2017 в 16:52