Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot install NuGet package Microsoft.Bcl.Build 1.0.14

I am making a multi-platform app in VS 2013 (iOS, WinPhone and Android). I want to add into the iOS reference folder a Nuget Packages named Microsoft Http Clients Libraries and I cannot do it because I get the following error:

Could not install package 'Microsoft.Bcl.Build 1.0.14'. You are trying to install this package into a project that targets 'Xamarin.iOS,Version=v1.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.

Can anybody help me with that?

like image 420
Alejandro Castán Avatar asked Jan 21 '15 10:01

Alejandro Castán


2 Answers

Go to -> Solution -> Manage Packages For Solution -> In the tab "Browse" -> Select the two options follow below:

First:

Install package "Microsoft.Bcl.Build" your version more latest 1.0.21

Second:

After this step, now install package "Microsoft.Net.Http" your version mor latest 2.2.29

Result: For me was solved!

like image 184
Jonathan Menezes Avatar answered Sep 21 '22 07:09

Jonathan Menezes


I faced the same problem and apparently the Bcl.Build 1.0.14 can not be installed, but you probably you don't need that old version.

I faced this issue when I tried adding WindowsAzure.MobileService to the iOS Xamarin project. And it failed, because the minimal supported Bcl.Build is required to be 1.0.14, but if you have a newer version, which installs quite fine, you will be able to add other packages that depend on it.

So 1. Install Microsoft.Bcl.Build package separately (the latest) 2. Install your package that depends on it.

like image 23
Ivan Kirkorau Avatar answered Sep 21 '22 07:09

Ivan Kirkorau