Integrate custom rule set in visual studio 2022.

BR Kiran 0 Reputation points

We are trying to integrate custom rule set in visual studio 2022 for .net core project. by default, we are able to see the issues found by both .net analyzer and the custom rule set.

we want to see only the issues found by the custom rule set. for this we need to disable default .net analyzer so that we can see only the issues found by custom rule set.

can anybody help to achieve this?

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
3,189 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Dr. Volker Milbrandt 80 Reputation points

    Let Visual Studio create the .editorconfig file and set all rules to silent, e.g. dotnet_diagnostic.CA1032.severity = silent.

    Add your custom rules at the end of the .editorconfig.

    0 comments No comments