Creating Custom Rules for .Net Analyzers

209 Views Asked by At

We are switching to .Net Analyzers on our .Net 5 and 6 projects. On previous projects we had dlls we wrote for some custom rules that we use. I've looked around and can't find any information on how to write custom rules (only custom rulesets) for .Net Analyzers. Is this possible and if so, how?

1

There are 1 best solutions below

0
Lance On

Somehow after spending a long time looking, I overlooked the page at MS:

https://learn.microsoft.com/en-us/dotnet/csharp/roslyn-sdk/tutorials/how-to-write-csharp-analyzer-code-fix