Error while integrating our project on both locally and GitHub

We have integrated our project within Github and now we are trying to integrate the Cl. We have tried setting it up both locally and on Github.

When integrating the sonarqube locally, we receive the following error. We have installed .Net and sonarqube tools.

dotnet sonarscanner begin /k:" projectname" /“url” /d:sonar.login=“token”

Could not execute because the specified command or file was not found.

Possible reasons for this include:

  • You misspelled a built-in dotnet command.

  • You intended to execute a .NET Core program, but dotnet-sonarscanner does not exist.

  • You intended to run a global tool, but a dotnet-prefixed executable with this name could not be found on the PATH.

When integrating with Github we receive this error.


Hi @lchoong - welcome to the community.

Please create a separate topic for each question, as it makes them easier to answer.

Local build error:

The error message is saying that the runtime can’t find the scanner, which suggests that either it isn’t installed correctly, or you have installed locally (rather than globally) in a different folder from where you are trying to execute it.

You can use the dotnet tool list --global and dotnet tool list --local commands to check if the scanner is installed correctly.

CI build error:

MSBUILD: error MSB1003: Specify a project or solution file. The current working directory does not contain a project or solution file.

This has nothing to do with the scanner, it’s an error in the “build” part of your pipeline. MSBuild can’t find a project/solution to build.