Open
Description
By running dotnet build -check
, you can get Roslyn analyzer-style code analysis for your csproj files, see here. This is only available with .NET 9 and greater. Let's have an option to use this.
- Add an option to the
dotnet build
-using workflows to use-check
. This should be off by default. - Add common configuration for our projects. The most suitable place for that is possibly https://github.com/Lombiq/.NET-Analyzers, since configuring BuildChecks rules happens in .editorconfig files (and perhaps .globalconfig files, do check).
- Fix any actual issues it finds in our projects.
Also see dotnet/msbuild#1777 (comment).