Develop custom rules for csharp

I want to develop a custom plugin for csharp. First, I write a analyzer using the roslyn. Then I convert the dll to the jar file according to SonarQube.Roslyn.SDK-2.0. Finally, I put the jar file in the folder sonarqube\extensions\plugins, and restart the sunarqube. The rules normal display, but it doesn’t work. What should I do?

Hi @Toddy - could you help us with some logs to better understand this? Debug logs for msbuild and the end step of the analysis? Read here how to get verbose logs.

Are you analyzing with the Scanner for .NET?

We released v3.0 of the SonarQube SDK for Roslyn, please have a try (Release v3.0 · SonarSource/sonarqube-roslyn-sdk · GitHub) and let us know if it works well for you.