.NET Community Toolkit 8.1 enhances MVVM capabilities

tools toolkit toolbelt jesse orrico cc0 via unsplash 100756940 large


Microsoft has improved the functionality, performance, and diagnostics of the MVVM Toolkit portion of the .NET Community Toolkit. The upgrade was released this week.

.NET Community Toolkit 8.1, announced on January 18th, adds dedicated analyzers to the MVVM (model-view-viewmodel) toolkit. Previously, the MVVM toolkit generated diagnostics for features that were not used correctly. We can now provide recommendations to improve the code. Another analyzer has also been added to reduce the binary size of your application.

Performance optimizations aim to improve the user experience for developers, especially when working with large solutions. The generator architecture has been improved with features such as multi-targeting in the Roslyn 4.3 compiler platform. Diagnostics have been moved to the diagnostic analyzer to reduce typing overhead. The incremental provider has also been updated to no longer propagate symbols and reduce memory usage. The incremental model and pipeline have been overhauled to improve performance and reduce memory allocations. His updated MVVM toolkit also includes new features. IObservable<T> extension of IMessenger The interface bridges the functionality exposed by the Messenger API.

.NET Community Toolkit 8.1 also added the .NET 7 target framework monitor to the high performance package and includes helpful changes to the C# 11 ref field. Some types are excluded from preview in version 8.1. Ref<T>, ReadOnlyRef<T>, NullableRef<T>When ReadOnlyNullableRef<T>. new ref Safety regulations apply to these types.

In addition to the updated MVVM Toolkit, the .NET Community Toolkit now includes the following libraries:

  • CommunityToolkit.Common
  • CommunityToolkit.Diagnostics
  • CommunityToolkit.HighPerformance

The source code for the .NET Community Toolkit, which provides APIs and helpers for .NET developers regardless of UI framework, can be found on GitHub.

Copyright © 2023 IDG Communications, Inc.


Source link

What do you think?

Leave a Reply

GIPHY App Key not set. Please check settings

    Stryker ICV

    This Week in Russia-Ukraine War (Jan 20) – Defense Security Monitor

    WIU and John Wood Community College Sign Agriculture Agreement