Announcing .NET Community Toolkit 8.0! MVVM, Diagnostics, Performance, and more

Web development
Oct 04, 2022
4 Mins Read
Announcing .NET Community Toolkit 8.0! MVVM, Diagnostics, Performance, and more

ASP.NET Marketing Every business needs a solid marketing plan in order to thrive

Microsoft launched .NET Community Toolkit 8.0 after many previews, almost one year after it released v7.1 of its predecessor, Windows Community Toolkit.

This Microsoft-maintained .NET Foundation project is a collection of New interface utilities and APIs that are useful for all .NET developers since none of the APIs are runtime or framework dependent, and its libraries may target .NET Standard 2.0 to .NET 6

It is one of the numerous comparable toolkits that are often sets of extra overhead, unique controls, and app services designed to build and show simple developer jobs for many kinds of applications.

The comparatively new toolkit comprises a number of .NET-specific libraries that were separated from the Windows Community Toolkit and placed in their own devoted GitHub repository hence the 8.0 designation, picking up from where the Windows kit versioning was at the time of the split. These libraries include MVVM, High – speed and Diagnostics, and Standard Rescuers.

What Is MVVM Toolkit?

The toolkit’s most significant new feature, according to Redmond, is an improved version of the MVVM (model-view-view-model) Toolkit.

Following a preview period that started in January, the .NET Community Toolkit 8.0.0, a spin-off of the Windows Community Toolkit, was launched on August 4.

Features

  • New MVVM source generators are included in this release, and are among the first additions of Microsoft Toolkit’s Preview 1. These are a result of a notable upgrade to the MVVM generators. The addition of these generators helps developers easily separate business logic from UI Code.
  • MVVM source generators minimize the boilerplate code that’s typical with MVVM. Along with this, they provide a simple command implementation and run quicker. They also offer new observable properties with a better implementation and improve the structure of ViewModels to better support multiple inheritance in C#.
  • With MVVM generators, command cancellation and broadcasting are now possible for changed properties. Composition of ViewModels as well as the Messenger API are expanded. The Collection APIs also went through a design change to provide a better experience in development and a noticeable improvement in application performance.
Sample App for the MVVM Toolkit

The development team revealed a new MVVM Toolkit Sample App, accessible through the Microsoft store, as v8.0 became wide availability.

ASP.NET Marketing Every business needs a solid marketing plan in order to thrive

The variety of functions that are offered to developers are demonstrated by this sample app. It includes documentation and samples for many components. The product description is provided.

In the announcement post, more details are given: – It contains all of the content accessible on MS Docs, along with interactive examples for many of the different APIs.

It’s designed to be a companion for the MVVM Toolkit, and we think it will make this library easier to understand for new users!”

Improved Diagnostics APIs

The diagnostics libraries now support the C# 10 features of the interpolated string handler and caller argument expressions. Now developers can write cleaner, more efficient, and more maintainable code.

According to the Microsoft Developer Network, some Guard APIs now use custom handlers to avoid the standard string interpolation. As a result, call sites skip the interpolation step when there is no exception. This helps prevent unnecessary computations and optimizes the application.

.NET 6 support

.NET Community Toolkit 8.0 adds .NET 6 as a supported target for all existing libraries. Consequently, developers benefit from improved compatibility, better performance, and a more consistent development experience. Furthermore, the update makes it easier to build and maintain modern .NET applications.

       Advantages
  • For all libraries, trimming support is now available. This is supported by the fact that all packages have complete trimming observations for all APIs, ensuring that all code is either linker-friendly or explicitly displaying the proper warnings at compile time.
  • Nint and nuint are now supported by the HighPerformance package’s CountT>() extension.
  • When using .NET 6, more optimizations have been added to all packages.
Final Words

Microsoft launched .NET Community Toolkit 8.0 after many previews, almost one year after it released v7.1 of its predecessor, Windows Community Toolkit. The .NET Community Toolkit 8.0 includes several libraries designed specifically for .NET developers. Microsoft separated these libraries from the Windows Community Toolkit and moved them to a dedicated GitHub repository. As a result, developers can access toolkit updates independently. The 8.0 release continues the version numbering used by the Windows Community Toolkit before the split.

Related Posts