Sonar Scanner shows 0 bugs, 0 Vulnerabilties for .net project

Iam trying to scan a .net framework project via jenkins , the job is successful but in the sonar server it shows 0 bugs , 0 duplication lines , 0 vulnerabilites etc

I have performed below three steps
“E:\sonarqube-\sonar-scanner-msbuild-\SonarScanner.MSBuild.exe” begin /k:projectkey /d:sonar.login=authtoken
“C:\Program Files (x86)\MSBuild\14.0\Bin\amd64\MSBuild.exe” path/to/.sln file
“E:\sonarqube-\sonar-scanner-msbuild-\SonarScanner.MSBuild.exe” end /d:sonar.login=authtoken

Sonarqube server version 8.0 , sonarscanner-msbuild version 5.4.1

Any help would be appreciated

Thanks in Advance !

Hello and welcome to the community!

Please either use the latest SonarQube version or the LTS version. SQ version 8.0 is not supported.

I suggest using the latest version of Scanner for .NET (MSBuild).

After updating the versions, please share 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)
  • please give the output of running MSBuild in verbose mode (/v:d)

Also, please tell us:

  • what are the commands you are running to do the analysis?
  • are you running all commands from the same folder?

In addition, please see the following guides:

This topic was automatically closed after 10 days. New replies are no longer allowed.