Share via

Integrate custom rule set in visual studio 2022.

BR Kiran 20 Reputation points
2023-05-25T12:05:22.8166667+00:00

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?

Developer technologies | Visual Studio | Other
Developer technologies | Visual Studio | Other

A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.


1 answer

Sort by: Most helpful
  1. Dr. Volker Milbrandt 80 Reputation points
    2023-05-28T19:14:09.3966667+00:00

    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

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.