New .NET MAUI workload installation detailed in ‘Final Xamarin Podcast’ – Visual Studio Magazine



New installation of the .NET MAUI workload detailed in “Final Xamarin Podcast”

As Xamarin.Forms evolves into the new .NET MAUI mobile / desktop development framework, Microsoft last week explained features such as a new command-line SDK workload installation experience during of what the company called “The Final Xamarin Podcast”.

.NET Cross-Platform Application User Interface (MAUI) is a cross-platform framework for building native apps with C # and XAML, evolving Xamarin.Forms by adding desktop development support as well as traditional iOS / Android mobile development options.

Microsoft’s David Ortinau was on hand to discuss .NET MAUI with James Montemagno and Matt Soucoup in their Xamarin podcast, which was released this week with the headline “The Last Xamarin Podcast” as the development team works on the Xamarin. -to-.NET MAUI transformation.

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

On the new features front, Ortinau discussed a new SDK loading experience, which he called a “network load”, using the new dotnet network install order. It is supported by NuGet, which is used by Microsoft to install Android, iOS, macOS, .NET MAUI, Blazor, and other tools. “So with the dotnet installer you can actually install optional workloads, which MAUI is now a part of,” said Ortinau, senior program manager, .NET Multi-platform App UI. “So if you’re a command line junkie and really like getting your fingers dirty with keystrokes, then this is for you. So you can do a network load install command and pass MAUI as the workload ID and it will go out and retrieve all the SDKs you need to be able to run a MAUI application. ”

Ortinau was referring to the new SDK workload installation scheme introduced with .NET 6 Preview 4 in May, allowing developers to use a command line interface (CLI) to install optional SDK workloads. .NET 6. “.NET 6 will introduce the concept of SDK workloads that can be installed after the fact on the .NET SDK to allow for various scenarios,” Microsoft said at the time. “The new workloads available in Preview 4 are the .NET MAUI and Blazor WebAssembly AOT workloads.”

The functionality was extended last month with the release of .NET 6 Preview 5.

“We are now in the second half of the .NET 6 release and starting to see some important functionality coming together,” said Richard Lander, program director for Microsoft’s .NET team at the time. “A great example is .NET SDK Workloads, which is the foundation of our vision to unify .NET and supports more types of applications. Like other features, it combines to deliver a compelling end-to-end user experience. ”

The SDK workload scheme will replace the old monolithic approach to the SDK, which was cluttered with long build times and large distribution sizes.

“Instead, all new workloads will be created and delivered separately from the SDK, and can be obtained through your preferred installation tool (like Visual Studio Installer, a Linux package manager, or the .NET CLI)”, Lander said. “Ultimately, we intend that all .NET workloads will follow this model, resulting in a very small and focused SDK.

It therefore essentially acts as a package manager for the .NET SDK.

“The only thing it won’t do for you is install your Android emulators, your iOS, Xcode, and some of those other third-party dependencies, but when it comes to all things .NET it will do that for you. , “Ortinau said last week. “Now the good news is – jump to the other side, the very familiar experience – it’s all still part of the Visual Studio installer experience. So when you install Visual Studio in a future release , it’s not there yet, but it will use the same workload infrastructure, but give you that familiar installation experience, so you will check the box on .NET MAUI workload in the program. installation and you will also get all the SDKs you need, but it will additionally give you android emulators and tell you if you need to install Xcode, stuff like that. Open JDK I think is another dependency that he wants to get for you, and all of your models are bundled with that as well. ”

He explained that the MAUI .NET Verification The tool previously recommended by Microsoft to verify a machine’s configuration and install the necessary components uses the same underlying functionality. “So this is the first way to do .NET, so it works equally well with other workloads, not just MAUI, not just Android and iOS, but WPF and other workloads as well. The MAUI verification tool actually uses all of this same workload stuff behind the scenes, so it’s kind of a value-added facade on top of installing the .NET workload. MAUI Check will stick around as long as it is useful, but more and more of the features we have out there, we will talk to the team that owns the .NET installer and how we can put things together and make them work. together.

Other new features the team is working on for Preview 6 include improved gesture support, so gestures can be used with other view elements besides buttons. Support for shape clipping is also coming, providing the ability to hide different parts of a user interface. Another is a new platform folder for the single project template, “So that effectively means Android, iOS, Mac, and Windows subfolders can now all be nested and stored in a platform folder. ”

As a .NET MAUI preview will ship with Visual Studio 2022 previews, Ortinau said developers will benefit from hot reload, XAML experiences for a single project, and other benefits including migration / upgrade tools. upgrade and documentation for them and other tools.

Speaking of migration and upgrade, the .NET MAUI Roadmap shows that for .NET 6 Preview 6, coming this month, Microsoft expects to have a version of the .NET Upgrade Assistant capable of migrating Xamarin and Xamarin.Forms projects to .NET 6 and .NET MAUI.

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

“So we want to make it as easy as possible because we know we want to start delivering a lot more quality releases and new features and functionality, and the vehicle to ship them to us will be .NET 6 and .NET MAUI and of course .NET 7. We’re already starting to think about it. .NET 8, it’s happening. ”

.NET MAUI will reach general availability in November with the flagship release of .NET 6.

About the Author

David Ramel is editor and writer for Converge360.

Leave A Reply

Your email address will not be published.