Analyser C# not Working

Thanks for the detailed logs.

According to the logs, the Sonar analyzers are being removed by the standard Microsoft target DisableAnalyzers. My guess is that you are setting RunAnalyzersDuringBuild or RunAnalyzers to false somewhere in your project/target files.

Try adding /p:RunAnalyzersDuringBuild=true is the MSBuild Arguments section of the Azure DevOps build step.

3 Likes