How to scan Java and HTML files along with C# using Sonar Scanner for MSBuild?

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    SonarQube - 9.9 LTS
    SonarScanner for MSBuild 5.13.0 .Net FWK 4.6
  • how is SonarQube deployed: zip, Docker, Helm - .zip
  • what are you trying to achieve - We have c#, HTML, java and multiple languages code, when we are on sonar 6.7.5 then sonarscanner use to build this complete code and give us the output report in to one single project, but now we moved to 9.9LTS and sonarscanner is not giving C# files in the ourput report, and it is getting only with sonarscanner for MSBuild, but when we use the latar one we are getting only C# files but java,js,html files are not getting scanned in output… We are expecting both to be analyzed and pushed to one single project in sonarqube

Hey there. Take a look at this documentation on Analyzing Languages other than C# – SonarScanner for .NET

Hi Team,

Now I’m able to scan few other language files by adding the include
option, however there is one more concern where we have requirement
that we build multiple projects in parallel in one single bitbucket
repo, so I need to run my sonarqube project analysis on all these
folders and want to push one single final scanned report to Sonarqube,
Can you please help me on how we can get this achieved. Previously we
have used sonarqube version 6.7.5 and in that by using simple sonar
scanner we use to add the inclusions and exclusions and get the scan
report for all the languages in one single job, but after moving to
latest LTS Version the these c# things are not straightforward it
seems. So can you help me with the solution for this.

I’m glad you can include those other language files.

Please create a new thread to address this separate question. Make sure you include detailed logs, pipeline files, etc.