In our Azure DevOps pipeline we build our C# application/s using dotnet build.
To date we have been using both SonarCloud and StyleCop and could see warnings from both in the output of the “dotnet build” step.
As you would expect as we are running SonarCloud we have the “Prepare Analysis Configuration” step before “dotnet build” step runs.
We are now trying to migrate over to using Microsoft.CodeAnalysis.NetAnalyzers (Roslyn Analyzer) instead of StyleCop. However, now in our “dotnet build” we are only seeing warnings from Sonarcloud and not from “Microsoft.CodeAnalysis.NetAnalyzers”.
However, if we run our build without the SonarCloud “Prepare Analysis Configuration” we then see the warnings from “Microsoft.CodeAnalysis.NetAnalyzers” in the output.
We are not trying to report the warnings from Microsoft.CodeAnalysis.NetAnalyzers to SonarCloud, we are simply trying to see the warnings in the build report within the pipeline but SonarCloud seems to prevent this.
It seems like Sonarcloud may overite Microsoft.CodeAnalysis.NetAnalyzers output or block this from running, is SonarCloud compatible with Microsoft.CodeAnalysis.NetAnalyzers or is there some configuration that we are missing?