After upgraded LTS 9.9 sonarqube scanner .cs files summary line counts are not showing "-"

Make sure to tell us:

  • What version are you upgrading from? 8.9.6 to 9.9.1
  • System information (Operating system, Java version, Database provider/version) Windows server
  • What’s the issue you’re facing?
    recently we have upgraded sonarqube LTS to 9.9 from 8.9. after upgrade scanning not working properly. scanning results lines are empty for .cs files.


Welcome to the community!

Please post your analysis logs, redacted as necessary.

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"
    • “SonarQubePrepare” or “SonarCloudPrepare” task’s extraProperties argument if you are using Azure DevOps
      • For example:
        - task: SonarCloudPrepare@1
              SonarCloud: 'sonarcloud'
              organization: 'foo'
              scannerMode: 'MSBuild'
              projectKey: 'foo_sonar-scanning-someconsoleapp'
              projectName: 'sonar-scanning-someconsoleapp'
              extraProperties: |
  • 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


Thanks Ann. we are able to fix this issue by installed 5.13 for .net46. now i’m getting issue that .js file unable to scan.


Please create a new thread for that, and include all your details (and logs!)