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

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

问题描述

我读到现在.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将来能在电视上使用.

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.

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

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