Does DevEnv (Visual Studio) build task support to get the run code analysis working in Azure Devops while Integrating with SonarQube

We are using SonarQube 8.2 version and trying to run the analysis through the Azure DevOps pipeline. Our solution gets to build with DevEnv(Visual Studio) task only. But the run code analysis task gives following error: SonarQube MSBuild integration failed: SonarQube was unable to collect the required information about your projects.

Any help in this matter is highly appreciated.


Hi @Sandeep_kumar1. Welcome to the community.

You’ll need to provide more information for anyone to be able to help you.

  • are you using the SonarQube Azure DevOps extension, and if so which version?
  • are you running the Prepare Analysis Configuration step before the build?
  • does the log output for the Visual Studio build step contain any errors?
  • the error message goes on to list the four most common causes for the error. Have you checked that none of them apply?
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 *XXX* upwards 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)

A post was split to a new topic: SonarQube MSBuild analysis does not work with