Missing information when building several solutions

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    SonarQube server version: Version 8.5.0.37579
    SonarQube scanner version: SonarScanner for MSBuild 4.10

  • what are you trying to achieve
    We are trying to collect the smells, bugs and vulnerabilities.

  • what have you tried so far to achieve this
    We’re using a script which builds and runs the SonarQube scanner (the build is done with Microsoft ® Build Engine version 16.7.0). As we have several solutions, we are using 3 .proj files which include c# solutions and they have something similar to:
    ExampleA.proj

    <Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
        <Target Name="BuildAll">
          <Message Text="xxx" />
          <Message Text="xxx" />
          <Message Text="xxx" />
    
          <MSBuild
            Projects="nuget.proj" />
          <MSBuild
            Projects="..\xxxa.sln"
            Targets="xxx"
            ToolsVersion="$(MSBuildToolsVersion)"
            Properties="Configuration=$(Configuration);Platform=$(Platform)" />   
           <MSBuild
             Projects="..\xxxb.sln"
             Targets="xxx"
             ToolsVersion="$(MSBuildToolsVersion)"
             Properties="Configuration=$(Configuration);Platform=$(Platform)" />
             .
             .
             .
         <MSBuild
             Projects="..\xxxn.sln"
             Targets="xxx"
             ToolsVersion="$(MSBuildToolsVersion)"
             Properties="Configuration=$(Configuration);Platform=$(Platform)" />
      </Target>
    

So, the steps to build and run SQ are:

  1. run SonarQube begin
    &"$sonnarScannerExe" begin /k:ProjectX /d:sonar.login="xxxxxxxxxxxx" /d:sonar.host.url="xxxxxxxxxxx";
  2. run msbuild for each .proj
    &$msBuildPath ExampleA.proj ...
    &$msBuildPath ExampleB.proj ...
    &$msBuildPath ExampleC.proj ...
  3. Finally we run SonarQube end:
    &"$sonnarScannerExe" end /d:sonar.login="xxxxxxxxxxxx"

Once those steps finish, I’m able to see the projects in the portal but I don’t have accurate measures. If I run those .proj individually, I can see more bugs, smells and vulnerabilities than executing the 3 .proj sequentially.

Due to project restrictions, we cant use a single .proj file with all the solutions in it, and we need to have all the information from all solutions in a single Project in SonarQube.

what options do we have to have information from all those projects in a single point in the portal?

Thank you in advance,

Regards