SonarQube C# Plugin not working

  • SonarQube version 7.5
  • Scanner version sonar-scanner-cli-3.3.0.1492-windows
  • Plugin C# version sonar-csharp-plugin-7.10.0.7896
    *OS Windows Server 2019 updated
  • We try to analyze the C# codes with sonar scanner but can not do it. We have find the a lot of solution on sonarqube web site or web sites but there is no any solution. So We try to Java (.js) codes with Java plug-in for analyse, we did success. C# analyze can not throw the report to server

Please advise
Best

Scanning C# requires using the Scanner for MSBuild: https://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner+for+MSBuild

1 Like

Thanks for information.

We can not use the sonar scanner for C# code, right?

correct.

we will try to scanner for msbuild and get back to you for result

I have received an error. Java installed to c:\java and JAVA_HOME set on Windows environment

ERROR: JAVA_HOME exists but does not point to a valid Java home
folder. No “\bin\java.exe” file can be found there.

Please advise

When Start the SonarScanner.MSBuild.exe end command

it solved when close the command prompt after open and re-run command

, thanks for support

2 Likes