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

**URL:** <https://community.sonarsource.com/t/does-devenv-visual-studio-build-task-support-to-get-the-run-code-analysis-working-in-azure-devops-while-integrating-with-sonarqube/23767>\
**Category:** SonarQube Server / Community Build\
**Tags:** azure\
**Created:** [April 28, 2020, 4:12am UTC](https://community.sonarsource.com/t/does-devenv-visual-studio-build-task-support-to-get-the-run-code-analysis-working-in-azure-devops-while-integrating-with-sonarqube/23767 "2020-04-28T04:12:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sandeep\_kumar1](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/sandeep_kumar1/32/11293_2.png) [@Sandeep\_kumar1](https://community.sonarsource.com/u/Sandeep_kumar1)\
**Post date:** [April 28, 2020, 4:12am UTC](https://community.sonarsource.com/t/does-devenv-visual-studio-build-task-support-to-get-the-run-code-analysis-working-in-azure-devops-while-integrating-with-sonarqube/23767/1 "2020-04-28T04:12:38Z")

</div>

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.

Thanks

---

<div class="post-metadata">

**Author:** ![duncanp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/duncanp/32/293_2.png) [@duncanp](https://community.sonarsource.com/u/duncanp)\
**Post date:** [April 29, 2020, 9:17am UTC](https://community.sonarsource.com/t/does-devenv-visual-studio-build-task-support-to-get-the-run-code-analysis-working-in-azure-devops-while-integrating-with-sonarqube/23767/2 "2020-04-29T09:17:00Z")

</div>

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](https://marketplace.visualstudio.com/items?itemName=SonarSource.sonarqube) 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?

```auto
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)

```

---

<div class="post-metadata">

**Author:** ![duncanp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/duncanp/32/293_2.png) [@duncanp](https://community.sonarsource.com/u/duncanp)\
**Post date:** [September 27, 2021, 10:56am UTC](https://community.sonarsource.com/t/does-devenv-visual-studio-build-task-support-to-get-the-run-code-analysis-working-in-azure-devops-while-integrating-with-sonarqube/23767/3 "2021-09-27T10:56:05Z")

</div>

Split this topic on September 27, 2021, 10:56am UTC

A post was split to a new topic: [SonarQube MSBuild analysis does not work with devenv.com](https://community.sonarsource.com/t/sonarqube-msbuild-analysis-does-not-work-with-devenv-com/50391)

---

<div class="post-metadata">

**Author:** ![duncanp](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/duncanp/32/293_2.png) [@duncanp](https://community.sonarsource.com/u/duncanp)\
**Post date:** [September 27, 2021, 10:56am UTC](https://community.sonarsource.com/t/does-devenv-visual-studio-build-task-support-to-get-the-run-code-analysis-working-in-azure-devops-while-integrating-with-sonarqube/23767/4 "2021-09-27T10:56:18Z")

</div>

Closed on September 27, 2021, 10:56am UTC


