Trying to use SonarQube with dotnet but getting error message

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
  • what are you trying to achieve
  • what have you tried so far to achieve this

Hello,

I am new in SonarQube and I’m trying to use it in my dotnet project, but when I try to run this command in the terminal:

SonarScanner.MSBuild.exe begin /k:“TCM” /d:sonar.host.url=“http://localhost:9000” /d:sonar.login=“ade0c3897de7afe1987caa823cda1b8858acdc2c”

I am receiving the message Sonar “is not recognized as a built-in command
or external, an operable program or a batch file” (sorry if something is wrong, english is not my main language). Could someone help me?

Hello @Pedro_Costa and welcome to our community.

The problem is that windows didn’t find the executable. You can either add the folder containing the SonarScanner.MSBuild.exe to your “Path” environment variable or use the full path of the executable to run the commands.

All the best,
Čaba

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.