SonarQube showing 0% code coverage in dotnet

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension) = SonarQube 9.3 in On-Premises server

  • how is SonarQube deployed: zip, Docker, Helm = Zip

  • what are you trying to achieve = UI component (Dot Net) is not showing code coverage and displaying dash symbol in portfolio.
    Warning -

  1. Node.js version 18 is not supported. you might experience issues. Please use a supported version of Node.js (14,16).
  2. Your project contains only Test-code for language C# and no Main-code for any language. so only Test-code related results are imported. Many of our rules (e.g vulnerabilities) are raised only on MAIN-code.
  • what have you tried so far to achieve this
    I have re-queued build and checked dll on servers as well.

Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!

This is the first problem to solve.

Take a look at this wiki page and make sure you are actually analyzing some product code.

:warning: Make sure you upgrade to SonarQube v9.9 LTS soon, not only to benefit from our Best LTS Ever™, but because soon we will systematically ask users to upgrade when they ask questions about earlier versions of SonarQube, which are now considered unsupported. :smiley: