Sonar scanner issue to run scan

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
  • Community Edition Version 9.4 (build 54424)
  • dotnet-sonarscanner.5.5.3 (windows 10)
  • what are you trying to achieve
  • I am trying to run a source code scan however I get the error
    “Could not execute because the application was not found or a compatible .NET SDK is not installed.” when ever I try run the required commands to execute the scan.
  • what have you tried so far to achieve this
  • I have downloaded the dotnet-sonarscanner configured the net5.0 SonarQube.Analysis.xml file with the required details
  • I have installed all required packages (java) on my workstation

is the anything that I am missing?
Disclaimer I am a new user with zero experience using SonarQube

Hey there.

You’ll need to make sure a .NET SDK is installed on your machine, not just a .NET Runtime.


Stated another way – you’ll need to make sure that a simple dotnet --version returns successful. Some users face issues with the order .Net executables appear in their PATH.

I just double checked to ensure that my prerequisites are correct:

I will test out and see if order .net executable might be the issue. Thanks for the prompt response

Issue has been resolved

Thanks a million

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