我可以向PCL添加.NET标准库吗 [英] Can I add .NET Standard libraries to PCL

查看:91
本文介绍了我可以向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/

这篇关于我可以向PCL添加.NET标准库吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆