News

Preview of .NET MAUI Community Toolkit Heralds Xamarin.Forms Sunsetting

As promised, Microsoft is previewing a .NET MAUI Community Toolkit some two months before it begins to sunset its progenitor, Xamarin.Forms, long used for mobile iOS and Android app development with C# and XAML.

Such mobile development is being folded into the umbrella .NET 6 framework, which will reach general availability (GA) in November along with the open source .NET Multi-platform App UI (.NET MAUI). That cross-platform framework is described as the evolution of Xamarin.Forms because it adds desktop development in addition to the mobile targets. Thus Microsoft will service Xamarin.Forms v5.0 only through November 2022, after which it will head into the sunset. "Your existing and new Xamarin.Forms applications will migrate to .NET MAUI with tooling assistance and documentation which we will provide later in the .NET 6 preview timeframe," Microsoft says.

.NET MAUI
[Click on image for larger view.] .NET MAUI (source: Microsoft).

The company continued to do exactly that with the Aug. 31 introduction of .NET MAUI Community Toolkit (Preview), the first pre-release version of two new .NET MAUI toolkits: CommunityToolkit.Maui and CommunityToolkit.Maui.Markup.

Served up by NuGet, these kits typically are collections of helper functions, custom controls and app services designed to simplify and demonstrate common developer tasks for projects of varying types. For example, the Windows Community Toolkit can be used to build apps for any Windows 10 device, including PC, Mobile, Xbox, IoT and HoloLens. The kits announced this week contain .NET MAUI extensions, advanced UI/UX controls, effects and behaviors designed to help .NET MAUI developers.

.NET MAUI Community Toolkit
[Click on image for larger view.] .NET MAUI Community Toolkit (source: Microsoft).

However, they don't yet contain all of the functionality of their Xamarin.Forms counterparts, which the dev teams are striving to rectify before GA.

Xamarin Community Toolkit
[Click on image for larger view.] Xamarin Community Toolkit(source: Microsoft).

Speaking of dev teams, the Xamarin Community Toolkit team this week announced two new .NET MAUI-compatible versions of their toolkit: Xamarin.CommunityToolkit.MauiCompat and Xamarin.CommunityToolkit.Markup.MauiCompat.

The MauiCompat libraries are aligned with the latest release of Xamarin.CommunityToolkit but target .NET MAUI apps. Xamarin.CommunityToolkit, meanwhile, is for Xamarin.Forms apps, Microsoft developer advocate Brandon Minnick explained.

"The MauiCompat libraries are created as a helpful step in your migration from Xamarin.Forms to .NET MAUI," he said. "These libraries ensure that you can access all of the features of Xamarin.CommunityToolkit in your .NET MAUI apps without breaking changes, helping to make your migration to .NET MAUI easier.

"We recommend eventually replacing Xamarin.CommunityToolkit.MauiCompat with the new .NET MAUI Toolkit, CommunityToolkit.Maui, to take advantage of new features and optimizations."

Meanwhile, all greenfield development -- brand-new apps -- should be done with the fully optimized .NET MAUI Community Toolkit discussed here and also announced yesterday (Aug. 31), instead of Xamarin.CommunityToolkit.MauiCompat.

About the Author

David Ramel is an editor and writer at Converge 360.

comments powered by Disqus

Featured

  • Compare New GitHub Copilot Free Plan for Visual Studio/VS Code to Paid Plans

    The free plan restricts the number of completions, chat requests and access to AI models, being suitable for occasional users and small projects.

  • Diving Deep into .NET MAUI

    Ever since someone figured out that fiddling bits results in source code, developers have sought one codebase for all types of apps on all platforms, with Microsoft's latest attempt to further that effort being .NET MAUI.

  • Copilot AI Boosts Abound in New VS Code v1.96

    Microsoft improved on its new "Copilot Edit" functionality in the latest release of Visual Studio Code, v1.96, its open-source based code editor that has become the most popular in the world according to many surveys.

  • AdaBoost Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the AdaBoost.R2 algorithm for regression problems (where the goal is to predict a single numeric value). The implementation follows the original source research paper closely, so you can use it as a guide for customization for specific scenarios.

  • Versioning and Documenting ASP.NET Core Services

    Building an API with ASP.NET Core is only half the job. If your API is going to live more than one release cycle, you're going to need to version it. If you have other people building clients for it, you're going to need to document it.

Subscribe on YouTube