My First Project in SonarQube

Hi ,I am new to SonarQube and tried to integrate SonarQube tasks in Azure DevOps Server Build Pipeline. I have installed SonarQube and SonarScanner on Build Mahchine but still this attached message is showing up. Kindly share your thoughts if i am missing anything. Thanks!

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.25420.1 and higher 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)
    16:41:38.847 Post-processing failed. Exit code: 1
    The process ‘D:\Agents\SonarQube_tasks\SonarQubePrepare_15b84ca1-b62f-4a2a-a403-89b77a063157\4.8.0\classic-sonar-scanner-msbuild\SonarScanner.MSBuild.exe’ failed with exit code 1

Hi,

Can you give us a bit more context, such as :

  • Which version of MSBuild are you using ?
  • Which version of .NET (framework or core) are you targeting ?
  • Have you following all 4 points of troubleshoot given there ?
  • Have you correctly integrated the SonarQube analysis tasks ? ie : Prepare analysis, build, (tests), Run Code Analysis ?

Thank you.

Issue Resolve. Sorry for Late reply. Thanks Anyways!!

1 Like