I am using SonarQube Community Edition Version 8.9.10 and Sonar Scanner for MSBuild (126.96.36.199756-net5.0)
I have a folder containing multiple C# projects with a single .sln file, which usually takes around 12 seconds for compiling (after dotnet clean).
When using sonarqube, I am encountering very slow performance (over 1 minute just for the build),since it seems that every project is scanned even though it has no changes.
In order to manage this, I am trying to use sonar.inclusions to filter out which files to scan. However, by looking at the log during the build phase, it seems that every project is again checked for issues, consuming a lot of time. Also, it seems like everything gets recompiled unline when building normally.
For example, this row is in the build output:
Sonar: (monocromo.example.API.slmp.csproj) Project processed successfully
However, the sonar.inclusions path given does not include the path monocromo.example.API.slmp.csproj. Why does it need to scan it then?
Is there any way to speed up the scanning process in my situation?
Thank you a lot