C# 12 Support and New Enhancements
·
53 commits
to main
since this release
Requirements to run
- Visual Studio 2022 (17.9.6) or .NET 8 (SDK 8.0.204)
Requirements to build
- Visual Studio 2022 (17.9.6) or .NET 8 (SDK 8.0.204)
New
- Handle C# 12 source codes
- Add NoSpaceAfterBrace and NoSpaceBeforeBrace analyzers
- EqualsNull analyzers provides a new option of Code Fix to replace:
… != nullor… != nullwith the property pattern… is {}or!(… is {})
- IsNull analyzers provides a new option of Code Fix to replace:
!(… is null)or… is nullwith the property pattern… is {}or!(… is {})
Removed
- Remove the VSIX project from the solution
Changed
- Work with Visual Studio 2022
- Update dependent packages
- Improve installation: no longer need to manually edit
csprojfiles - Perform CI with GitHub Actions
- Switch
LangVersionto12.0 - Reformat source files with File-scoped namespace declarations
- Refactor with C# 12 features
- Enable
EnforceExtendedAnalyzerRules - Add test cases
Fixed
- Fix warnings
- Fix SingleTypeParameter analyzer to ignore the following cases:
- The type name is
Tand it has one type parameter (e.g.,public class T<U> …) - The type
Tis already contained in the type or member
- The type name is
- Fix documents