News/Tech News

.NET Community Toolkit 8.1 is now available

Published on feb 4, 2023

Microsoft recently released .NET Community Toolkit 8.1. The new release contains performance improvements to the MVVW Toolkit source generators. As well as customizable attributes for ObservableProperty, MVVM Toolkit analyzers, Messenger extensions and .NET 7 support, the MVVM Toolkit provides new features.

The previous (8.0.0) version consisted of helpers and APIs to facilitate using patterns such as MVVM regardless of the platform. A number of improvements have been made to version 8.1, including improvements to performance and code readability. The preview version already had all the features introduced.

Custom attributes were requested by the community for ObservableProperty. Previously, this could only be set manually for the MVVM toolkit’s source-code generator. To implement this feature in the new version, Microsoft decided to use an existing property: – it is a syntax in C# that allows developers to mark attributes for propagation to generated properties. By using the built-in C# syntax, the property does not require any additional attributes. It also solves the problem of annotating attributes, which can only be applied to properties, not fields.

The new version of the .NET Community Toolkit provides developers with more targeted assistance for optimizing the use of the MVVM Toolkit. Source generators will now use the Roslyn 4.3 target, enabling some of the more optimized APIs if the host supports them. When referencing the MVVM Toolkit, this feature is automatically enabled. Another thing to do is switch generators to the new high-level Roslyn API to match attributes, which improves the performance of generators based on specific attributes.

The developers also moved almost all diagnostics to diagnostics analyzers, resulting in reduced typing overhead. In addition to improving all incremental models and pipelines, this also reduces overall memory consumption.

A new feature of the MVVM toolkit is the ability to integrate the functionality provided by the messenger APIs. This is now supported with the new IObservable extensions for the IMessenger interface.

By using this extension, you will be able to subscribe to messages and dynamically respond to them.

.NET Community Toolkit 8.1 provides the .NET 7 TFM platform to the HighPerformance package, as well as several changes to take advantage of the new features in C# 11, especially the ref fields. It is possible to declare ref fields within a ref struct. Additionally, the runtime can fully define Span using the C# type system.

Tech News

Kubefirst Platform Improves Password Management and Local Experience img

Kubefirst Platform Improves Password Management

An open-source infrastructure application platform named Kubefirst, has just released version 1.11…

GraalVM Native Image on RISC-V img

GraalVM Native Image on RISC-V

The fifth generation of the Reduced Instruction Set Computer (RISC) architecture, known as RISC-V

Our Latest Blog

Unlock Your Potential with a Level 5 Diploma in Business London's Top Courses img

Unlock Your Potential with a Level 5 Diploma in Business: London’s Top Courses

Are you looking to enhance your knowledge and skills in the field of business? Do...
Read More
Unlock Your Potential with Level 4 Diploma in Business Courses in London img

Unlock Your Potential with Level 4 Diploma in Business Courses in London

Are you looking for a comprehensive course to take your business career to the next...
Read More

Follow Us


Browse LSET presentations to understand interesting…

Explore Now

Get complete guides to empower yourself academically…

Explore Now

Learn about information technology and business…

Explore Now