简体   繁体   English

Xamarin.Forms (.Net Standard) 中的 Microsoft.Bcl 和 Microsoft.Bcl.Build 不兼容

[英]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.我正在创建一个 Xamaring Forms 应用程序,我正在使用他们使用 Microsoft.Bcl 和 Microsoft.Bcl.Build 的教程。 The project was created in Visual Studio 2017 using "Cross platform App".该项目是在 Visual Studio 2017 中使用“跨平台应用程序”创建的。 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.我正在使用 Visual Studio 2019,但没有找到“跨平台应用程序”,所以我正在使用 Xamarin.Forms 移动应用程序开发我的应用程序。

The point is that one uses .NetFramework and the other uses .NetStandard so Microsoft.Bcl and Microsoft.Bcl.Build are not compatible.关键是一个使用 .NetFramework 而另一个使用 .NetStandard 所以 Microsoft.Bcl 和 Microsoft.Bcl.Build 不兼容。

My questions are:我的问题是:

  1. Is it ok to build my app using Xamarin.Forms Mobile App?可以使用 Xamarin.Forms 移动应用程序构建我的应用程序吗? 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谢谢

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;

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何绕过 Microsoft.Bcl.Build 警告 - How to bypass Microsoft.Bcl.Build warning 使用CallerMemberName的Microsoft.Bcl程序包无法在Teamcity中生成 - Microsoft.Bcl package using CallerMemberName fails to build within Teamcity 由于依赖于Microsoft.Bcl,TeamCity上的CI构建失败 - CI Build on TeamCity Fails due to dependency on Microsoft.Bcl 软件包“ Microsoft.Bcl 1.1.10”已使用“ - Package 'Microsoft.Bcl 1.1.10' was restored using ' 我仍然需要.net 4.5+中的Microsoft.Bcl.Build吗? - Do I still need Microsoft.Bcl.Build in .net 4.5+ 安装了Microsoft.Bcl的项目仍会发出警告“项目必须安装nuget包Microsoft.Bcl” - Projects with Microsoft.Bcl installed still give warning “Project must install nuget package Microsoft.Bcl” 在某些计算机上生成期间未添加对Microsoft.Bcl修补程序库(System.Runtime等)的引用 - References to Microsoft.Bcl patched libraries (System.Runtime, etc) are not added during build on some machines PostSharp:在Windows Phone 7项目中与Microsoft.Bcl一起使用时,BindingException - PostSharp: BindingException when using with Microsoft.Bcl in Windows Phone 7 project 如果我使用Microsoft.Bcl,可以在.net 4.0中使用Signalr 2.x吗? (从.NET 4.0上的1.x升级) - Can i use signalr 2.x with .net 4.0 if I am using Microsoft.Bcl? (Upgrading from 1.x on .NET 4.0) 引用子项目的所有项目必须安装NuGet包Microsoft.Bcl.Build(C#/ Windows Phone 7)? - All projects referencing sub-project must install NuGet package Microsoft.Bcl.Build (C#/Windows Phone 7)?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM