Code coverage not shown for .NET 6 projects

Hello and welcome to the community!

Please give us the following version information:

And we’ll need the logs:

  • please give us the verbose output of the scanner commands (please run SonarScanner.MSBuild.exe begin /k:“MyProject” /d:sonar.verbose=true as the begin step, and please attach the output of the BEGIN and END steps)
    Similar for SonarQubePrepare :
          extraProperties: |
            sonar.verbose=true
  • please give the output of running MSBuild in verbose mode (/v:d)

Also, please tell us:

  • could you please share the coverage report generated by coverlet? I can send you a private message if you don’t want to share this publicly

In addition, please see the following guides:

1 Like