且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

我可以向PCL添加.NET标准库吗

更新时间:2022-11-05 18:47:30

您可以将.Net标准库添加到PCL中,但只能添加较低版本。这取决于您的配置文件版本,因此您几乎必须尝试一下,看看它是否有效。

You can add .Net standard libraries to PCLs, but only lower versions. It depends on your profile version, so you almost have to try it and see if it works.

您可以将PCL添加到.Net标准库中,方法是将回退设置为csproj文件中的PCL。您可以在此处阅读: https://oren.codes/2017/04/23/using-xamarin-forms-with-net-standard-vs-2017-edition/

You can add PCLs to .Net standard libraries, by setting a fallback to the PCL in your csproj file. You can read about it here: https://oren.codes/2017/04/23/using-xamarin-forms-with-net-standard-vs-2017-edition/