Moved to the correct spot for replying
I noticed that when I started using @7, my code coverage dropped to zero and the number of files to cover dropped by ~190K files. My new prepare task is
- task: SonarQubePrepare@7
inputs:
SonarQube: 'Sonarqube - OnPremises'
scannerMode: 'dotnet'
projectKey: '***'
projectName: '***'
projectVersion: '$(Build.BuildNumber)'
extraProperties: |
'sonar.cs.dotcover.reportsPaths="c:\sonarqube\output_trunk\***.html"'
sonar.scanner.scanAll=false
My old task is
- task: SonarQubePrepare@6
inputs:
SonarQube: 'Sonarqube - OnPremises'
scannerMode: 'MSBuild'
projectKey: '**'
projectName: '**'
projectVersion: '$(Build.BuildNumber)'
extraProperties: 'sonar.cs.dotcover.reportsPaths="c:\sonarqube\output_trunk\**.html"'
I was forced to use dotnet in @7, from msbuild. Could this be the issue and if so, why are we forced to do this if @6 is being deprecated in the future?