如何定位“移动应用(Xamarin.Forms)"在 VS2019(版本 16.8.0)中项目到 .net 5.0? [英] How to target "Mobile App(Xamarin.Forms)" project to .net 5.0 in VS2019 (Version 16.8.0)?

查看:14
本文介绍了如何定位“移动应用(Xamarin.Forms)"在 VS2019(版本 16.8.0)中项目到 .net 5.0?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最后 但我发现它针对 .NET Standard 2.0所以我尝试通过编辑项目文件将其更改为 .NET 5.0我在更改.netstandard2.0"之后重建了这个解决方案到.net5.0",但有错误.

finally .NET 5.0 is released and i would like to have a "Mobile App(Xamarin.Forms)" project which targets to .NET 5.0. So i created a "Mobile App(Xamarin.Forms)" project. But i found it targeted to .NET Standard 2.0 So i tried to change it to .NET 5.0 by editing the project file I rebuilded this solution After i changed ".netstandard2.0" to ".net5.0", but there are errors.

我的vs2019版本

我如何定位移动应用程序(Xamarin.Forms)"?项目到 .net 5.0?

How can i target the "Mobile App(Xamarin.Forms)" project to .net 5.0?

推荐答案

无法使用 .net 5 with Xamarin,这只有在 .net 6 以后才有可能:

It is not possible to use .net 5 with Xamarin, this will be only possible since .net 6:

我们还在 5.0 中完成了大部分早期工作,因此 Xamarin开发人员可以在我们发布 .NET 6.0 时使用统一的 .NET 平台.有关 .NET 统一的更多信息,稍后将在帖子中介绍.

We’ve also done much of the early work in 5.0 so that Xamarin developers can use the unified .NET platform when we release .NET 6.0. There is more on .NET unification, later in the post.

所以你仍然需要使用 .net standard 2.x 作为共享项目.

So you still have to use .net standard 2.x as shared project.

这篇关于如何定位“移动应用(Xamarin.Forms)"在 VS2019(版本 16.8.0)中项目到 .net 5.0?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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