The Microsoft improvement group acquired a big improve with the discharge of .NET Neighborhood Toolkit 8.4, introducing revolutionary features that enhance the developer expertise and code effectivity. This vital milestone brings transformative modifications to the MVVM improvement workflow, introducing partial properties help and an intensive suite of recent analyzers. The discharge marks a pivotal second for .NET builders, notably these working with UWP and WinUI 3 purposes.
.NET Neighborhood Toolkit 8.4 main options
1. Partial properties
The standout characteristic of this launch is the introduction of partial properties help for the MVVM Toolkit supply mills. This extremely requested performance leverages new C# language options from the .NET 9 SDK, permitting builders to outline observable properties utilizing the [ObservableProperty]
attribute on partial properties inside ObservableObject-derived lessons.
The partial properties implementation brings a number of essential enhancements:
- Full integration with C# language options.
- Help for customized accessibility modifiers.
- Enhanced nullability annotations.
- Full AOT security for UWP and WinUI 3.
- Improved navigation capabilities by CTRL + click on performance.
2. Superior analyzer Suite
Model 8.4 introduces 16 new diagnostic analyzers, considerably increasing the toolkit’s code evaluation capabilities[1]. These analyzers are categorized into:
- Basic code evaluation for MVVM eventualities.
- CsWinRT trim/AOT supporting code evaluation for UWP and WinUI 3 purposes.
Code migration help
The discharge features a refined code fixer that automates the migration from [ObservableProperty]
on fields to partial properties. This instrument permits builders to replace their complete resolution with a single click on, streamlining the transition to the brand new system.
Improvement necessities
To make the most of the partial properties characteristic, builders should:
- Allow C# preview by including
<LangVersion>preview</LangVersion>
to their .csproj file. - Use the most recent Visual Studio 2022 model (17.12 minimal).
- Have the .NET 9 SDK put in.
Extra enhancements
The toolkit additionally delivers a number of quality-of-life enhancements:
- New MSBuild logic for Windows SDK model validation.
- Help for forwarding attributes to property accessors.
- Enhanced diagnostic suppressions for customized attribute targets.
- Improved efficiency by optimized diagnostic implementation.
- Help for required modifier in fields utilizing
[ObservableProperty]
. - Embedded .pdb recordsdata for all analyzer tasks.
Developer expertise enhancements
The replace emphasizes developer productiveness with:
- Streamlined debugging capabilities.
- Enhanced code navigation.
- Improved error messaging.
- Higher integration with present improvement workflows.
Efficiency and compatibility
The toolkit maintains robust efficiency whereas including new options:
- Optimized supply mills.
- Improved AOT compatibility.
- Enhanced WinRT state of affairs help.
- Higher integration with present MVVM patterns.
Future-ready improvement
This launch positions .NET Neighborhood Toolkit as a forward-looking framework by:
- Supporting trendy C# language options.
- Offering complete diagnostic capabilities.
- Enabling seamless migration paths.
- Sustaining compatibility with present codebases.
The .NET Neighborhood Toolkit 8.4 represents a big step ahead in .NET improvement, providing builders highly effective instruments to jot down extra maintainable, environment friendly, and strong code. The mix of partial properties help, enhanced analyzers, and improved improvement workflows makes this launch vital improve for .NET builders working with MVVM patterns and trendy utility architectures.
Yow will discover all of supply code within the GitHub repo, together with some docs on MS learn, and full API references on the .NET API browser website.
Associated posts
Uncover extra from Microsoft Information Right now
Subscribe to get the most recent posts despatched to your e mail.