SonarQube Scanner is not able to complete Scanning Analysis

I am running the SonarQube scanner on Windows 10 system locally with below mentioned details:-

  1. SonarQube Server 7.7 build (23042)
  2. sonar-scanner-msbuild-

A. SonarScanner.MSBuild.exe begin /k:“DigiMobile” /“http://localhost:9000” /d:sonar.login=“0362b6d3c927d3f094243439bee8595eb7d56184”

B. MsBuild.exe /t:Rebuild

C. SonarScanner.MSBuild.exe end /d:sonar.login=“0362b6d3c927d3f094243439bee8595eb7d56184”

The above step A & B is working fine but C step is not getting executed successfully as result throwing some error attached to this post.

The below is error log:-

SonarScanner for MSBuild 4.6.2
Using the .NET Framework version of the Scanner for MSBuild
Post-processing started.
The SonarQube MSBuild integration failed: SonarQube was unable to collect the required information about your projects.
Possible causes:

  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. Currently MSBuild 14.0 and 15.0 are supported
  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)
    Generation of the sonar-properties file failed. Unable to complete SonarQube analysis.
    11:38:27.626 Post-processing failed. Exit code: 1


Four possible causes of failure are listed. You’ve already indicated that #1 and #3 aren’t likely. What about #2 and #4?


#2 The correct version of MSBuild is used.
#4 There is valid projectGuid.

I am able to run the MSBuild on Mac platform without any issue not on windows.

I got the same mistake. i use mac.
What is your sonerscanner version?
my version 4.4.1

The below is sonar scanner version:-

Ok, update my soner-scanner and problem is solved. Thanks…