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 Releases Dev Proxy 0.21
08/10/2024

Microsoft has released an update to Dev Proxy, its command-line API simulator. The updated version, v0.21, adds the ability to simulate authentication and authorization using API keys and OAuth2 among [ ... ]



Check Your APIs With Zuplo's Rate My OpenAPI
15/10/2024

Zuplo has launched a new suite of tools that rates the quality of your API, based on its OpenAPI specification. We put it through its paces and find it useful.


More News

espbook

 

Comments




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