Can I add .NET Standard libraries to PCL

2019-01-29 08:40发布

问题:

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

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

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

回答1:

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.

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/