Version: >> SonarQube Community 8.8.0.42792
Objective >> Enable Sonar scan for a small C# project from Azure DevOps
Dear all,
I’m fignting with SonarQube to enable a scan of a small Windows form project developed in C# saved in Azure DevOps (using Git) and configured with a basic Pipeline.
The pipeline is working well and i can retrieve and run the EXE file from Artifact.
But in SonarQube project created for this one, there is no code line analysis (like an empty project):
In the files view of Sonar, i can see the list of C# files from my project, but no information from those file (like Lines of code):
I went in DevOps pipeline to look the log associated with SonraQube Code Analysis and found this line could explain why it was not managed:
2021-05-12T08:16:55.3556230Z INFO: Sensor C# [csharp]
2021-05-12T08:16:55.3556855Z WARN: No protobuf reports found. The C# files will not have highlighting and metrics. You can get help on the community forum: https://community.sonarsource.com
2021-05-12T08:16:55.3557563Z INFO: Importing 1 Roslyn report
2021-05-12T08:16:55.3558050Z INFO: Found 1 MSBuild C# project: 1 MAIN project.
2021-05-12T08:16:55.3558934Z INFO: Sensor C# [csharp] (done) | time=31ms
But i have no idea why the “protobuf” report is not found, do you have any idea how i can try to fix it ?
PS: I can provide you the project source code easily if necessary.
Thanks by advance for your help.
Fab