Sands of MAUI: Problem #82

Welcome to the Sands of MAUI—e-newsletter model points devoted to bringing collectively newest .NET MAUI content material related to builders.

A particle of sand—tiny and innocuous. However put plenty of sand particles collectively and now we have one thing massive—a drive to reckon with. It’s the smallest grains of sand that always add as much as type huge seashores, dunes and deserts.

Most .NET builders are excited with .NET Multi-platform App UI (MAUI)—the evolution of contemporary .NET cross-platform developer expertise. Going ahead, builders ought to have
rather more confidence within the expertise stack and instruments as .NET MAUI empowers native cross-platform options on each cellular and desktop.

Whereas it could take a protracted flight to achieve the sands of MAUI island, developer pleasure round .NET MAUI is sort of palpable in all of the shared content material. Just like the grains of sand, every bit of reports/article/documentation/video/tutorial/livestream contributes
in the direction of developer data in .NET MAUI and we develop a group/ecosystem keen to be taught & assist.

Sands of MAUI is a humble try to gather all of the .NET MAUI awesomeness in a single place. Here is what’s noteworthy for the week of November 28, 2022:

.NET MAUI for Native Apps

The promise of .NET MAUI is straightforward—allow builders to construct native, cross-platform desktop/cellular apps all on one framework and from a shared codebase. Whereas .NET MAUI will be nuanced and allow code sharing with internet applied sciences, the core premise
of utilizing .NET to construct stable native apps has not modified. David Ortinau wrote up an epic article to drive house the purpose—utilizing .NET MAUI to construct native no-compromise apps.

David began out with a much bigger image of unified .NET and with the massive .NET MAUI pitch: In case you are a .NET developer, then you’re already a .NET MAUI developer. As we speak’s .NET MAUI, tooling and greater ecosystem goals to encourage developer confidence in
constructing high notch cellular and desktop apps—that simply occur to be cross-platform.

David showcased how .NET MAUI permits builders to share sources/kinds throughout platforms and the way the frameworks caters to cellular/desktop experiences with simple platform API entry. .NET MAUI tooling on each Home windows and macOS is all grown up now, with
options like XAML and .NET Sizzling Reload, Dwell Preview and Dwell Visible Tree holding builders productive. That is just the start although—.NET MAUI ought to encourage builders to go native on cellular/desktop with cross-platform .NET options
for years to come back—cheers to that.

.NET MAUI in Visible Studio for Mac

.NET MAUI is the subsequent era of cross-platform utility improvement stack with fashionable .NET and goals to be platform-agnostic as to how builders are constructing the apps. The fact, nonetheless, has been that .NET MAUI tooling for builders on
Home windows has been considerably higher than that on macOS, principally as a result of Visible Studio for Mac went via a giant UI overhaul.

All that modifications with the most recent launch of Visible Studio for Mac 17.4 and Bilge Zeren Aksu wrote up the announcement—steady .NET MAUI tooling is now typically obtainable in Visible Studio for Mac.

.NET MAUI permits builders to have a real single shared venture that caters to iOS, Android, Home windows and macOS—all doable now from steady Visible Studio for Mac. .NET MAUI builders on macOS now have the benefit of a single optimized improvement
expertise from shared venture with full constancy debugging on iOS, Android and MacCatalyst.

Developer productiveness tooling like XAML Sizzling Reload and Dwell Visible Tree ought to all gentle up on Visible Studio for Mac, together with assist for .NET 7 runtime and XCode 14. Now not preview bits—life is nice for .NET MAUI builders on fruity

.NET 7 Options

The following evolution of .NET aka .NET 7 is right here and prepared for builders to construct manufacturing apps. There are tons of options in .NET 7 to assist fashionable apps and workflows, like .NET MAUI, Containerization, Cloud Native, Efficiency enhancements, ARM
64 assist and rather more. It might sound overwhelming to get a grasp on all the brand new cool issues in .NET 7, however James Montemagno is right here to assist with a just lately produced video
on seven superior new options in .NET 7.

If anyone was on the fence about upgrading to .NET 7, James makes a powerful case—simply the plethora of efficiency enhancements in .NET 7 and .NET MAUI ought to make issues value it. Whereas consumer apps are scorching, internet apps are ubiquitous and .NET 7
has a ton of updates to higher serve .NET internet builders—James talks up Charge Limiting and Enter Caching in ASP.NET Core, along with Minimal API enhancements. Core of .NET will get a good share of affection with .NET SDK Container assist
and Native AOT, with programming language aficionados nicely served with C# 11 and F# 7 options.

And at last, .NET MAUI is all grown up in .NET 7, reaching cellular and desktop from a single shared codebase, and with polished developer tooling.
.NET 7 is lots thrilling and James showcases plenty of .NET 7 options that make it engaging to improve apps/developer experiences to .NET 7.

Xamarin to .NET MAUI

With .NET 7 out in all its glory, many builders could now be considering of shifting to .NET MAUI to go cross-platform. There was no dearth of .NET MAUI love on the current .NET Conf and Sweekriti Satpathy did one of the vital related classes—a defacto information on tips on how to transfer apps/libraries from Xamarin world over to .NET MAUI.

Sweeky began off laying the inspiration with .NET MAUI ecosystem and showcasing the advantages builders have to achieve after they migrate to .NET MAUI. With Xamarin assist stretching until Could 2024, there will not be an enormous rush emigrate, however builders
ought to begin considering now and be aware of the place issues stand of their code base.

Sweeky talked concerning the variations between Xamarin.Varieties and .NET MAUI tasks, and tips on how to sort out difficult NuGet/API dependencies or complicated Customized Renderers.
Sweeky confirmed off a number of methods of migrating apps over to .NET MAUI and inspired utilizing .NET Improve Assistant instrument. Backside line, there may be assist and steering to maneuver from Xamarin to .NET MAUI, so long as builders do not forget to breathe.

MAUI App Accelerator

With growing variety of builders getting on board .NET MAUI, the ecosystem is rising and as are the number of instruments/patterns/options/libraries that assist. Builders kickstarting their subsequent cross-platform .NET MAUI venture ought to get off on
a stable start line, have requisite instruments at their disposal and arrange for fulfillment with applicable coding patterns. Matt Lacey may help with an exquisite new Visible Studio extension—say howdy to the MAUI App Accelerator.

The MAUI App Accelerator is squarely meant to enhance the ‘File > New Challenge’ expertise for .NET MAUI builders and cater instruments/patterns to particular person developer preferences. After putting in the VS Extension, builders can select the MAUI App
Accelerator template for a wizard-based UI to arrange the brand new .NET MAUI venture—the identifier for MAUI App Accelerator is an lovely goat. As soon as picked, the MAUI App Accelerator wizard kicks in and helps builders create the precise .NET MAUI
start line desired—selections embody .NET runtimes, coding model, navigation patterns, pages and app options.

Borrowing energy from obtainable Toolkits, the MAUI App Accelerator places builders in management with selections in each step of
the way in which as to how the visible tree is to described, what layouts are most popular and the kinds of pages desired within the .NET MAUI app. The MAUI App Accelerator is right here to assist kickstart your subsequent .NET MAUI app proper—thanks Matt.

That is it for now.

We’ll see you subsequent week with extra superior content material related to .NET MAUI.

Cheers, builders!

Related Articles


Please enter your comment!
Please enter your name here

Latest Articles