Cannot install NuGet package Microsoft.Bcl.Build 1.0.14

Alejandro Castán picture Alejandro Castán · Jan 21, 2015 · Viewed 7.8k times · Source

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?

Answer

Ivan Kirkorau picture Ivan Kirkorau · Jun 1, 2016

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.