Sonar cloud showing 0.0% code coverage desspite Azure devops showing correct code coverage

Below is my code . project is in c#

- task: SonarCloudPrepare@2
  inputs:
    SonarCloud: 'sonar-integration-test'
    organization: 'xxx'
    scannerMode: 'MSBuild'
    projectKey: 'xxx-xxx'
    projectName: 'xxx'
    extraProperties: |
    sonar.cs.opencover.reportsPaths=$(Build.SourcesDirectory)/**/coverage.opencover.xml
    sonar.cs.vstest.reportsPaths=$(Agent.TempDirectory)/**/*.trx

image

Hi,

Can you share your analysis log?

The analysis / scanner log is what’s output from the analysis command. Hopefully, the log you provide - redacted as necessary - will include that command as well.

This guide will help you find them.

 
Thx,
Ann