什么是毛伊岛?MAUI和Xamarin有什么区别 [英] What is MAUI? and what are differences between MAUI and Xamarin

查看:71
本文介绍了什么是毛伊岛?MAUI和Xamarin有什么区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

那么,Xamarin.Forms会怎样?

So, What happens to Xamarin.Forms?

什么是多平台应用程序用户界面?

MAUI和Xamarin有什么区别

我们在哪里可以生成MAUI项目?

推荐答案

Microsoft使用.NET 5开始统一.NET平台的旅程,将.NET Core和Mono/Xamarin整合到一个基类库(BCL)中,工具链(SDK),有关它的更多信息,请此处.

With .NET 5 Microsoft begins the journey of unifying the .NET platform, bringing .NET Core and Mono/Xamarin together in one base class library (BCL) and toolchain (SDK), more about it here.

众所周知,.NET MAUI是一种新的升级解决方案的名称,它是一种多平台应用程序UI框架,用于使用.NET为Android,iOS,macOS和Windows构建本机跨平台应用程序.它是Xamarin.Forms的演进,并以此为基础,成为构建本机跨平台应用程序的新旗舰.NET解决方案.

.NET MAUI as everybody already knows is a name for a new upgraded solution as a Multi-platform App UI framework for building native cross-platform apps with .NET for Android, iOS, macOS, and Windows. It is the evolution of Xamarin.Forms, built on top of it, becoming and being a new flagship .NET solution for building native cross-platform apps.

对于我个人而言,.NET团队将通过已经非常出色的Xamarin.Forms团队更加专注于此框架的开发,这在过去一两年中对平台产生了巨大的变化和改进.

For me personally it is great that .NET team will be more focused on development of this framework with already great Xamarin.Forms team which made a huge difference and improvement to the platform in the last year or two.

目前,GitHub存储库(2020年7月)与XF几乎相同,所有命名空间均为 System.Maui ,但未来情况将大不相同.正如他们在主题演讲和其他来源中所承诺的:

For now, the GitHub repository (July 2020), is pretty much the same as XF one, all the namespaces are System.Maui, but in future things will be very different. As they promised on keynote and other sources:

  • 一个针对多个平台和设备的项目
  • 一个位置来管理字体和图像等资源
  • 多目标组织您的平台特定代码

它还将为您提供支持,以不同的现代模式和框架构建应用程序,例如:

It will also provide you support for building the apps in different modern patterns and frameworks such as:

  • MVVM
  • MVU
  • RxUI

使用.NET MAUI创建和开发应用程序的工具为:

Tools to create and develop apps with .NET MAUI are:

  • Visual Studio
  • Visual Studio for Mac
  • Visual Studio代码

由于.NET Maui将更多地参与整个.NET开发工具,因此将增加对.NET Core CLI的支持.换句话说,这意味着我们将能够使用以下命令从命令行创建一个新项目:

Since .NET Maui will be more involved in whole .NET development tooling, there will be support added for .NET Core CLI. In other words that means we will be able to create a new project from the command line with:

dotnet new maui

.NET Maui的主要目标是:

Main goals of .NET Maui are:

  • 提高应用程序性能
  • 提高控件可扩展性的简便性
  • 提高贡献的简便性
  • 启用开发人员选项以使用模型视图更新(MVU)和Blazor

在过去的一两年中,Xamarin.Forms的新发行周期非常频繁,而且肯定会持续下去.该团队将继续努力,但.NET Maui将会并肩发展,并随着.NET 6,Xamarin的发布而逐渐成熟.Forms将停止使用新功能.

In last year or two Xamarin.Forms had a very frequent cycle of new releases and that will surely continue. The team will continue to work on it but also side by side .NET Maui will grow more mature and around the release with .NET 6, Xamarin.Forms will stop with features and new stuff.

.NET Maui完全可用并准备就绪后,Xamarin.Forms将继续获得支持12个月.有关路线图及其发展状态的更多信息,请访问GitHub官方页面此处和整个Wiki.页面中充满了有关未来开发的有用信息.

After .NET Maui is fully available and ready Xamarin.Forms will continue to receive support for 12 months. More about the road map and development state of it can be found on the official GitHub page here and the whole wiki page is full of helpful info about future development.

这篇关于什么是毛伊岛?MAUI和Xamarin有什么区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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