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

问题描述:

我有一个Xamarin Forms应用程序,并且使用Visual Studio 2015。

I have a Xamarin Forms app and using Visual Studio 2015.

1)我可以添加到PCL .NET Standard库吗?

1) Can I add to PCL .NET Standard libraries? Are there any issues with that?

2)编辑.NET标准库的resx会​​导致VS2015崩溃。有解决方法吗?

2) Editing resx of a .NET Standard library crashes VS2015. Any workaround?

您可以将.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/