Cannot install Microsoft.Bcl.Build 1.0.14 NuGet package

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

Failed to install the package 'Microsoft.Bcl.Build 1.0.14'. You are trying to install this package into a project whose purpose is "Xamarin.iOS, Version = v1.0", but the package does not contain any assembly links or content files that are compatible with this framework. For more information, contact the author of the package.

Can someone help me with this?

+8
visual-studio xamarin xamarin-studio
source share
6 answers

I ran into the same problem and apparently Bcl.Build 1.0.14 cannot be installed, but you probably don't need this old version.

I ran into this problem when I tried to add WindowsAzure.MobileService to an iOS Xamarin project. And this did not succeed, since the minimum supported by Bcl.Build should be 1.0.14, but if you have a newer version that installs pretty well, you can add other packages that depend on it.

So, 1. Install the Microsoft.Bcl.Build package separately (the last one) 2. Install the package that depends on it.

+23
source share

Go to → Solution → Manage packages for the solution → On the Overview tab → Select the following two options:

At first:

Install the package "Microsoft.Bcl.Build" . Your version is later version 1.0.21

Second:

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

Result: For me it was decided!

+2
source share

Microsoft.Bcl.Build 1.0.14 can be installed in Xamarin.iOS projects.

It may fail if:

  • NuGet Package Manager is not updated.
  • You do not have any Xamarin Portable Class Library library profiles for Xamarin.iOS.

If you have the latest version of Xamarin installed, NuGet Package Manager is probably not updating. You can update it using the tools - Extensions and Updates - Updates - Visual Studio Gallery.

+1
source share

In Visual Studio 2017, I encountered the error above, and I solved the problem by installing Microsoft.Bcl.Build on Xamarin.Android first, then installed Microsoft.Net.Http and System.Net.Http, but Xamarin.IOS and Xamarin.UWP did not there were problems.

+1
source share

I tried to install Microsoft.Net.Http in a Xamarin.Forms project when I ran into this problem. Here is what you should try to get rid of this error:

1- Update Xamarin.Forms to the latest version in each solution project.

2- My main goal was to install Microsoft.Net.Http , and this package had dependencies on Microsoft.BCL and Microsoft.BCL.Build . I tried installing these packages (Microsoft.Bcl and Microsoft.Bcl.Build) individually and it worked for me. First install the latest version of Microsoft.Bcl.Build 1.0.21 ( If version 1.0.14 is not installed, try the latest version). Then install Microsoft.Bcl , which should be successfully installed, and this solution worked for me, and I hope this works for you too. After installing these packages, I was able to install Microsoft.Net.Http .

NOTE. When installing packages ( Microsoft.Bcl and Microsoft.Bcl.Build ) in your projects, check which version you are installing. Try installing a different version if it doesn’t work, and let me know. If the problem is not resolved.

Excellent day:)

0
source share

I found a solution and put it here in case someone might run into the same problem. Install "Microsoft.Bcl.Build.1.0.21" for all your projects. Now you can install "PortableRest", all dependencies that depend on Microsoft.Bcl.Build will be installed correctly.

0
source share

All Articles