SonarScanner.MSBuild.exe: command not found

scanner
sonarcloud
msbuild

(chamodh) #1

Hi ,

I have integrated sonar cloud with bitbucket repository using a pipeline. when i run the Msbuild in my local machine its working fine but everytime i do a commit build is failing with the error “SonarScanner.MSBuild.exe: command not found”. i would like to know your thoughts on this.


(Valeri Hristov) #2

Hi @chamodh93, do you have SonarScanner for MSBuild installed on your build agent? You could download it from here:
https://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner+for+MSBuild

and don’t forget to put its directory to the system PATH variable.