How to add custom ruleset for stylecop in Visual Studio 2019?

Prabs 1 Reputation point
2021-06-29T10:59:34.067+00:00

Hi,
How to add custom ruleset(SA#) for stylecop in Visual Studio 2019?

I installed stylecop in Visual studio.
I have some specific number of stylecop rules(SA#) and I need to add these as custom rules.
Please help me on this?

Regards,
Prabs110199-stylecop.jpg

Developer technologies | .NET | .NET Runtime
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.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Michael Taylor 61,116 Reputation points
    2021-06-29T13:51:40.63+00:00

    Add the Nuget package for Stylecopanalyzers to your project. Then it is configured as already mentioned using .editorconfig.


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.