Microsoft is previewing .NET Community Toolkit 8.0.0, a new version of the .NET Toolkit that adds .NET 6 support and new MVVM (Model-View-ViewModel) toolkit capabilities.

The .NET Community Toolkit is a collection of APIs and helpers for all .NET developers, who don’t know any UI platform. Version 8 is the first version of the new version NET Community Toolkit Repository. .NET Community Tools Repository, which will be the home of all .NET libraries from now on.

With Preview 1, revealed on January 25, .NET Community Toolkit 8.0.0 adds support for the recently released .NET 6 SDK as a new target across the available libraries. This leads to improvements when running on the latest .NET runtime, including slash support for all libraries and file support nint And nuint In the Count<T> Extension in the HighPerformance package, improvements for .NET 6.

The toolkit also includes a revamped preview of the source generators for MVVM Toolkit, which is part of the .NET Community Toolkit. The generators have been rewritten to be incremental, which means that they will be faster and will maintain the speed and responsiveness of the IDE even when used with large projects. These APIs reduce the standard syntax when working with MVVM. It also makes it easy to create commands using a file ICommand , and let the MVVM Toolkit generate commands automatically with RelayCommand types in the library.

Moreover, new features from the MVVM toolkit make it easier to write observable properties. The source generator can generate observable characteristics behind the scenes. And for view model configuration, the MVVM toolkit provides attributes for code generation that allow logic injection of types into random classes. This addresses a situation where C# lacks multiple inheritance, which can be a problem.

The source code for the .NET Community Toolkit can be found at GitHub.

Copyright © 2022 IDG Communications, Inc.

Source link

Leave a Reply

Your email address will not be published.