SonarQube C# Plugin not working


(Drivers) #1
  • 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


(Colin Mueller) #2

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


(Drivers) #3

Thanks for information.

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


(Colin Mueller) #4

correct.


(Drivers) #5

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


(Drivers) #6

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


(Drivers) #7

When Start the SonarScanner.MSBuild.exe end command


(Drivers) #8

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

, thanks for support