gpt4 book ai didi

c# - 如何在VS2019(版本16.8.0)中将 "Mobile App(Xamarin.Forms)"项目定位到.net 5.0?

转载 作者:行者123 更新时间:2023-12-02 19:07:54 25 4
gpt4 key购买 nike

最后.NET 5.0已发布,我想要一个针对 .NET 5.0 的“移动应用程序(Xamarin.Forms)”项目。所以我创建了一个“移动应用程序(Xamarin.Forms)”项目。 enter image description here但我发现它针对的是 .NET Standard 2.0 enter image description here所以我尝试通过编辑项目文件将其更改为.NET 5.0 enter image description here在我将“.netstandard2.0”更改为“.net5.0”后,我重建了这个解决方案,但有错误。 enter image description here

我的vs2019版本 enter image description here

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

最佳答案

无法使用 .net 5 with Xamarin ,这只能从 .net 6 开始实现:

We’ve also done much of the early work in 5.0 so that Xamarindevelopers 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作为共享项目。

关于c# - 如何在VS2019(版本16.8.0)中将 "Mobile App(Xamarin.Forms)"项目定位到.net 5.0?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64782448/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com