- versions used : “sonarqube-developer-7.2.1”
- error observed: “The SonarQube MSBuild integration failed: SonarQube was unable to collect the required information about your projects.”
-
More Description:
I am using SonarScanner for MSBuild for .NET Framework (C# project).
For your information, please find below the System and software information of the machine where the SonarQube installed.
os.arch x86
os.name Windows 10
os.version 10.0
Version 7.2.1.14109
Version: sonarqube-developer-7.2.1
SonarScanner for MSBuild 4.6.1
Microsoft ® Build Engine version 14.0.23107.0
.Net version v4.5
Visual Studio 2013
- steps to reproduce:
- I have installed SonarQube and all supporting software like Scanner for MSBuild and Microsoft Build Tolls as per the instruction and guide line mentioned in your portal.
- I can start the SonarQube service using command prompt
- I can Log in to http://localhost:9000 with System Administrator credentials (admin/admin)
- I can create project
- When I, Analyzing with SonarQube Scanner for MSBuild using the following commands:
a) SonarScanner.MSBuild.exe begin /k:“MyProj02ForCodeAnalysis” [Successful]
b) MSBuild.exe D:\Projects\MyProj02ForCodeAnalysis\Project2.sln /t:Rebuild [Successful]
c) SonarScanner.MSBuild.exe end [Failed] - In the above last command, the following error coming
The SonarQube MSBuild integration failed: SonarQube was unable to collect the required information about your projects.
Possible causes:
-
- The project has not been built - the project must be built in between the begin and end steps*
-
- An unsupported version of MSBuild has been used to build the project. Currently MSBuild 14.0 and 15.0 are supported*
-
- The begin, build and end steps have not all been launched from the same folder*
-
- 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.
20:50:09.446 Post-processing failed. Exit code: 1
- None of the analyzed projects have a valid ProjectGuid and you have not used a solution (.sln)*
The analyze tool is running upto 2nd command successfully. In the last command, error is coming. I have followed all the steps and instructions given in your portal. I am not getting any stats or report under http://localhost:9000. I can only see some analytics result from the above 2nd command and it is in command line. But not getting any proper report.