Microsoft .NET Community Toolkit backs .NET 6
Microsoft is previewing .Web Community Toolkit 8.., a new model of the .Net toolkit that adds .Internet 6 help and new MVVM (Model-Check out-ViewModel) toolkit abilities.
The .Web Group Toolkit is a selection of APIs and helpers for all .Web developers, agnostic of any UI platform. Version 8 is the initial launch from the new .Web Neighborhood Toolkit Repository, which will be the property for all .Internet libraries relocating forward.
With Preview 1, unveiled January 25, the .Internet Group Toolkit 8.. provides help for the just lately introduced .Internet 6 application development system as a new goal throughout obtainable libraries. This provides advancements when jogging on the newest .Web runtime, such as trimming help for all libraries, assist for
nuint in the
Count extension in the HighPerformance deal, and optimizations for .Internet 6.
The toolkit also features a revamped preview of source generators for the MVVM Toolkit, which is section of the .Net Community Toolkit. Generators have been rewritten to be incremental, indicating they will be more rapidly and hold the IDE quick and responsive even when made use of with large-scale tasks. These APIs lessen boilerplate when functioning with MVVM. They also make it less difficult to make instructions, by applying a new
ICommand attribute, and make it possible for the MVVM toolkit to routinely produce commands working with
RelayCommand kinds in the library.
Even more, new attributes from the MVVM toolkit make it less difficult to compose observable houses. The source generator can create observable qualities at the rear of the scenes. And for viewmodel composition, the MVVM toolkit introduces attributes for code generation that enable injecting logic from kinds into arbitrary classes. This addresses a scenario in which C# lacks a number of inheritance, which can be an issue.
Supply code for the .Internet Community Toolkit can be discovered on GitHub.
Copyright © 2022 IDG Communications, Inc.