.NET Standard over PCL Xamarin.Forms.Core 项目 [英] .NET Standard over PCL Xamarin.Forms.Core project

查看:24
本文介绍了.NET Standard over PCL Xamarin.Forms.Core 项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我了解到 .NET Standard 现在比 PCL 类库更适合共享代码.

I'm reading that .NET Standard is now preferred over PCL class libraries to share code.

我的问题是,我应该在 PCL 上使用 .NET Standard 库作为 Xamarin Forms 解决方案的核心吗?目前,它将针对 iOS 和 Android,但我们希望未来将 Tizen 用于 TV.

My question is should I use a .NET Standard library over a PCL for the core of a Xamarin Forms solution? Currently, it will target iOS and Android, but we are looking to Tizen for TV in the future.

推荐答案

.NET Standard 将是未来,所以如果可以,您现在就应该加入.

.NET Standard will be the future, so if you can you should get on board now.

但要注意.如果您计划使用 NuGet 包,您可能会遇到包(或来自其他来源的库)尚不支持 .NET Standard 的情况.或者反过来也是如此.到目前为止,有些库支持 .NET Standard,因此您应该安装旧版本(带有随之而来的所有风险)或寻找替代路径.

But be aware. If you're planning on using NuGet packages you could run into the situation that a package (or library from another source) does not support .NET Standard yet. Or the other way around is true as well. There are libraries that only support .NET Standard as of now, so you should either install an older version (with all the risks that come with it) or find an alternative path.

另请注意;.NET Standard(以及 Core 与此相关)领域现在发生了很多事情,因此请为错误、粗略的工具以及目前并非所有平台都得到支持做好准备.

Also note; a lot is happening now in .NET Standard (and Core for that matter) land so be prepared for bugs, rough tooling and not all platforms being supported just yet.

这篇关于.NET Standard over PCL Xamarin.Forms.Core 项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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