Skip to content

Add the option to use MSBuild BuildChecks during dotnet build (OSOE-1127) #483

Description

@Piedone

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).

Jira issue

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions