我可以将 .NET Standard 库添加到 PCL 吗 [英] Can I add .NET Standard libraries to PCL

查看:32
本文介绍了我可以将 .NET Standard 库添加到 PCL 吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 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 Standard 库的 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/

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

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