Search code examples
c#visual-studioxamarin.forms.net-standard.net-framework-version

Microsoft.Bcl and Microsoft.Bcl.Build in Xamarin.Forms (.Net Standard) Not compatible


I'm creating a Xamaring Forms App and I was using a tutorial where they used Microsoft.Bcl and Microsoft.Bcl.Build. The project was created in Visual Studio 2017 using "Cross platform App". I'm using visual studio 2019, and I did not find "Cross platform App" so I'm doing my app with Xamarin.Forms Mobile App.

The point is that one uses .NetFramework and the other uses .NetStandard so Microsoft.Bcl and Microsoft.Bcl.Build are not compatible.

My questions are:

  1. Is it ok to build my app using Xamarin.Forms Mobile App? Or is there any way to do like the video?
  2. If there isn't option, how could I import those libraries or aren't they necessary?

Thanks


Solution

  • It is not needed to install it because it is preloaded in the project, so you can use it whenever you want without installing it.

    I used these libraries and it worked perfectly.

    using System.IO;
    using System.Net; using System.Net.Http; using
    System.Net.Http.Headers;