The SonarScanner for MSBuild integration failed

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    SonarQube
  • how is SonarQube deployed: zip, Docker, Helm
    Zip
  • what are you trying to achieve
    Scan our project in every commit into our repository.
  • what have you tried so far to achieve this

Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!

SonarScanner for MSBuild 6.2
Using the .NET Core version of the Scanner for MSBuild
Post-processing started.
17:44:54.45 The SonarScanner for MSBuild integration failed: SonarQube was unable to collect the required information about your projects.
Possible causes:
17:44:54.45 Generation of the sonar-properties file failed. Unable to complete the analysis.

  1. The project has not been built - the project must be built in between the begin and end steps.
  2. An unsupported version of MSBuild has been used to build the project. Supported versions: MSBuild 16 and higher.
  3. The begin, build and end steps have not all been launched from the same folder.
  4. None of the analyzed projects have a valid ProjectGuid and you have not used a solution (.sln).
    17:44:54.453 Post-processing failed. Exit code: 1

Hi,

The error message gives you a list of possible causes, which you’ve quoted here. Did you check them?

 
Ann