.NET MAUI finally replaces Xamarin in Visual Studio 2022 17.3 Preview 1 — Visual Studio Magazine
.NET MAUI finally replaces Xamarin in Visual Studio 2022 17.3 Preview 1
The latecomer .NET MAUI finally replaced Xamarin in Visual Studio 2022.
Specifically, .NET MAUI (.NET Multi-platform App UI) is now a project type among the five Desktop & Mobile options in Visual Studio 2022 17.3 Preview 1, replacing the Xamarin-based option.
.NET MAUI is described by Microsoft as the mobile-centric evolution of Xamarin.Forms, as it adds support for building desktop applications.
This evolution reached a major milestone this week, although the workloads are still previewed in VS 2022 17.3 Preview 1, which ships on the heels of the general availability release of v17.2. That’s because .NET MAUI, originally slated to debut with .NET 6 last November, “shifted the schedule,” with the development team catching up with a series of previews and release candidates since then. Now in RC3 status, .NET MAUI is expected to arrive in GA later this month, possibly at Microsoft’s big Build developer conference on May 24.
Now .NET MAUI is featured above the “What’s New” items in Preview 1:
The big news was revealed in the GA announcement of Visual Studio 2022 17.2, where Microsoft provided a preview of the first preview of v17.3.
“Today we are also releasing the first preview of the next release, Visual Studio 2022 17.3 Preview 1,” Microsoft said in the May 10 post. “This is the core preview release that provides tooling support for .NET MAUI development using Visual Studio.”
The preview can be installed side-by-side with the 17.2 GA release.
“The .NET MAUI team is thrilled to bring this unified platform development experience to Visual Studio 2022 and thank you to all of you who provided feedback as you followed the journey. .NET MAUI with us and endured the initial install scripts, workload updates, etc,” Microsoft continued. “If you’re developing for .NET MAUI, Visual Studio 2022 17.3 Preview 1 is also the tool you want today.”
Although developers could create .NET MAUI apps in previous previews of Visual Studio 2022, it is now the official choice among Desktop & Mobile projects. In v17.2, these options included “Mobile Development with .NET — Build cross-platform apps for iOS, Android, or Windows using Xamarin.” :
In VS 2022 17.3 Preview 1, these options now include “.NET Multi-Platform App UI Development — Build Android, iOS, Windows, and Mac apps from a single codebase using C# with .NET MAUI.” :
However, as noted, the new option is still in preview (although .NET MAUI has been production-ready with go-live support for some time now). Developers now have three options for using .NET MAUI: the Basic .NET MAUI App, the .NET MAUI Blazor App, and the .NET MAUI Class Library:
As shown in a graphic above, other “What’s New” items in Preview 1 include:
- Show tabs on multiple lines
- Force execution at cursor
- All-in-one search
- Reopen closed documents
You can read more about all of this and more in the Preview 1 release notes.
David Ramel is an editor and writer for Converge360.