Undoubtedly, CommunityToolkit.Mvvm, aka Microsoft MVVM Toolkit, has recently become one of the most popular NuGet packages among MVVM developers.
It effectively abstracts away the boilerplate code, enabling developers to concentrate exclusively on the task.
However, after the release of package version 8.3 and later, while building the project referencing this Toolkit has encountered failures, accompanied by perplexing error messages like System.TypeInitializationException or Found conflicts between different versions of 'WinRT.Runtime' that could not be resolved. when targeting the Windows 10 platform.
This September, the .NET MAUI monthly community standup discusses the.NET MAUI 9 release enhancements. The HybridWebView and amazing TitleBar for Windows are just the tip of the iceberg.
Remember to join live on Thu, Sep 5 at 17:30 UTC. Click the link to access the timing in your local or preferred time zone.Note, that it’s half an hour behind the usual schedule.
Update: The community links for this month’s standup are here.
Happy coding. Stay connected as we continue to learn and share the experiences from this exciting journey of being a .NET developer.
Back in February, an article was published on the efficient utilization of Item Templates through the use of script automation. The article, titled .NET MAUI – Item Templates – Made Easy on CLI and VS Code, provides a detailed focus on this topic.
That article addressed two issues:
Better namespace resolution
Do more with fewer keystrokes
Now, the namespace resolution issue has been partially supported within the .NET SDK, eliminating the requirement for additional script files. A PR was submitted to the .NET Templating source repository, underwent review, and was subsequently merged into the main branch. This enhancement was then included in the release of .NET 9 Preview 6.
This month’s .NET MAUI community standup focuses on Mixed Reality, specifically on building MAUI apps for AR and VR devices, featuring Ed Charbeneau, well-known in the Blazor community.
His article about Mixed Reality features in the most recent edition of Code Magazine.
.NET MAUI All-in-One Templates - Support for NuGet CPM and Nightly Builds
Firstly, .NET MAUI 9 Preview 5 has just been released. The changelog can be found here. Notably, a new Blazor Hybrid Web template has been introduced in this version.
In short, this new template abstracts the Razor components into a distinct Razor Class Library (RCL). Furthermore, it provides the ability to create Blazor Web projects within the same solution and refers to the shared RCL.
The concept of abstracting the Razor components is already facilitated by the Hybrid project templates within the All-in-One template pack.
dotnet new mauiapp -o MyApp -dp Hybrid -rcl
Will review the modifications and cover them in a distinct article.
The year 2024 began with an article outlining the improvements in the Shared Toolkit through the optimization of specifying the Binding as a LINQ expression, without requiring an additional getter or setter.
Mainly, the Binding expression is statically typed, providing better control by aiding in identifying errors during compilation. Furthermore, it preserves the default binding behavior of the View, such as the two-way binding in the case of Entry, enabling editing. This behavior can be modified using the BindingMode parameter.
Abstracts the Shared components as a separate .NET MAUI Class Library
As we all know .NET MAUI is an evolution of Xamarin.Forms. The underlying architecture transitioned from Renderers to Handlers. The project structure is unified. But for the projects that are getting migrated and developers coming from Xamarin.Forms background would feel at home with the classic multi-project solution structure.
To effectively support this, the All-in-One project templates introduced an option to abstract the Shared components as a separate .NET MAUI Class Library.
The topic for this June month’s .NET MAUI community standup is VS Code Updates.
Of late, VS Code has incorporated many new features, such as XAML IntelliSense and Hot Reload, as the end of support for VS for Mac is quickly approaching (Aug 31, 2024).
Update: The community links for this month’s standup are here.
David highlighted using MAUI Nightly Builds in the standup. Projects in the All-in-One templates pack already support utilizing the Nightly builds from version 4.6 onwards. However, setting up the package source from the CI feed involves a few manual steps as detailed in the earlier article.
But, automation is the need of the hour. The upcoming release of templates pack v5.6, scheduled for this week, will streamline the process by eliminating manual steps, ensuring seamless functionality when selecting the Nightly builds option upon project creation. Cool 😊.
Update: v5.6 has just been released. Consult this article for further details.
Remember to join live on Thu, Jun 6 at 17:00 UTC. Click the link to access the timing in your local/preferred time zone. Note, it’s back at the same time.
Happy coding. Stay connected as we continue to learn and share the experiences from this exciting journey of being a .NET developer.