Scanning multiple solutions with shared projects in a single SQ project

  • SQ Enterprise Edition, Version 8.9.8 (build 54436)
  • MSBuild Scanner 5.5.3.43281-net46
  • two solutions with projects that have multi-targeting .NET Framework 4.8 and .netcore3.1
  • the solutions both reference some shared projects

The build is done via batch-file

  1. SonarScanner.MSBuild.exe begin …
  2. msbuild /t:rebuild ./solution1/solution1.sln
  3. msbuild /t:rebuild ./solution1/solution2.sln
  4. SonarScanner.MSBuild.exe end …

We are not sure, if all code from the shared projects gets scanned / reported correctly in SQ since a scan with the same scanner and yet a third (single) solution including these shared projects shows different results (e.g. LOC and issues) on the same code

Hi,

Welcome to the community!

I believe what you’re getting is the analysis of solution2. If you want to combine them, take a look at Applications, which start in Developer Edition($).

 
HTH,
Ann

Thanks, that seems to be the missing puzzle piece