.Net Framework project and .Net 6 project in same solution

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
  • what are you trying to achieve
  • what have you tried so far to achieve this

SonarQube : * Community Edition * Version 9.3 (build 51899)
I have a solution having more than 10 projects in a single solution, referenced(no circular dependency) to each other as required. One of them is upgraded to the .Net 6 project and others are .Net Framework based. I am trying to scan it as solution.
If I use SonarQube Scanner sonar-net46\SonarScanner.MSBuild.exe, then I dont get data for the .Net6 project, if I use sonar-net50\SonarScanner.MSBuild.dll, then I dont get data for rest of them.
Can some help to get the complete data for the solution in SonarQube.

Hello @nikhilesh.01

sorry for the delay

Share the Scanner for .NET verbose logs

  • Add /d:"sonar.verbose=true" to the SonarScanner.MSBuild.exe or dotnet sonarscanner begin command to get more detailed logs
    • For example: SonarScanner.MSBuild.exe begin /k:"MyProject" /d:"sonar.verbose=true"
  • The important logs are in the END step (i.e. SonarQubeAnalyze / SonarCloudAnalyze / “Run Code Analysis”)

Share the msbuild detailed logs

MsBuild.exe /t:Rebuild /v:d


dotnet build -v:d