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.
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)