SonarQube Community 8.8.0.42792 - Simple Winform application in C# not scanned by SonarQube

Dear all,
After hours spent to find the reason of that issue.
I recreated a full fresh dotnet winform project with VS Code and configured all in DevOps to build and test with the same issue.
I finally found the reason of and solution to fix the case:
Analyser C# not Working

The solution was at the Build Task of Azure DevOps to ask it to run test with build via this option:

  • /p:RunAnalyzersDuringBuild=true

Now SonarQube detected the C# code and placed color coding with issue and code smells as visible here

I have also the Overview updated with Quality Gate status related to last run of scan

So now this case can be closed.

Thanks anyway and enjoy your day.
Fab

1 Like