Microsoft Launches .NET Community Toolkit
Tuesday, 09 August 2022

Microsoft has officially launched the .NET Community Toolkit, a collection of helpers and APIs that work for all .NET developers. The toolkit is part of the .NET Foundation and is maintained and published by Microsoft which says the toolkit is agnostic of any specific UI platform.

 

net2

This isn't a completely new launch; all the libraries of the .NET Community Toolkit were originally part of the Windows Community Toolkit. That is a collection of helpers, extensions, and custom controls designed to simplify building UWP and .NET apps for Windows 10 and Windows 11. 

The APIs in the toolkit originally were aimed at Windows development, but over time an increasing number are aimed just at .NET in general rather than having Windows-specific dependencies, so the new toolkit consists of those Windows-agnostic APIs put together for .NET developers not doing any Windows development. 

One of the main components of the .NET Community Toolkit is the MVVM Toolkit, which Microsoft describes as a modern, fast, platform agnostic and modular MVVM library that is used by the Microsoft Store and the Photos app. It is described as "inspired by MvvmLight" and is also the official replacement for it now that the library has been deprecated.

The MVVM Toolkit in this release includes new MVVM source generators, which are meant to greatly reduce the boilerplate code that’s needed to set up an application using MVVM. Source Generators let C# developers inspect user code as it is being compiled. The generator can create new C# source files on the fly that are added to the user's compilation. In this way, you have code that runs during compilation. It inspects your program to produce additional source files that are compiled together with the rest of your code.

community toolkit

This image shows the source generator attributes in action. On the left-hand side is the original hand-written example using the MVVM Toolkit. The right-hand side shows using the new attributes to automatically generate the exact same code.

.NET Community Toolkit is available now on GitHub. 

net2

More Information

.NET Community Toolkit On GitHub

Related Articles

MAUI Compatibility For Xamarin Community Toolkit

.NET Celebrates 20th Anniversary of Launch

Microsoft Releases .NET 6 And Visual Studio 2022

Developer Preview Of .NET 6 Released

Windows UWP Community Toolkit  

To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.

Banner


Microsoft's Cybersecurity For Beginners
30/04/2024

A free, self-paced course about Cybersecurity 101 is on offer by Microsoft's Cloud Security Advocates. It's a 30+ lesson curriculum targeted at complete novices.



Pharo 12 Adds New Breakpoint System
09/05/2024

The latest version of Pharo, the open-source Smalltalk-inspired language and core library adds a new breakpoint model based on the debug point system.


More News

raspberry pi books

 

Comments




or email your comment to: comments@i-programmer.info