# Sonar. :
1. Roslyn : Roslyn . , . , , - Roslyn Live Code Analyzer API. .nupkg bin .
, your_project_name.version, , AnalyzerExample.1.0.6971.18074, - .
2. SonarQube Roslyn SDK SonarQube, Roslyn. , SDK SonarQube. , . JAR.
RoslynSonarQubePluginGenerator.exe /a:analyzerexample
XML . xml , jar, :
RoslynSonarQubePluginGenerator.exe /a:analyzerexample /rules:rules.xml
jar analysisrexample-plugin-1.0.6971.18074. , . , 1.
3. Use the generated jar file as a plug-in: copy the plug-in (jar file) created in step 1 to the SonarQube extension folder. Reboot the Sonar server. Log in to the server and then you will see the added rule in the section of the quality profile, in the list of recent rules. Click on this rule to activate it by adding it to some quality profile.
source
share