# \#msbuild

**URL:** https://community.sonarsource.com/tag/msbuild/30.md

[Latest](https://community.sonarsource.com/latest.md) · [Categories](https://community.sonarsource.com/categories.md) · [Tags](https://community.sonarsource.com/tags.md)

---

## [.NET Project File Analyzers has SonarQube integration](https://community.sonarsource.com/t/net-project-file-analyzers-has-sonarqube-integration/180359)

<div class="topic-metadata">

**Author:** [@Corniel](https://community.sonarsource.com/u/Corniel)\
**Replies:** 0\
**Last updated:** [March 27, 2026, 5:43pm UTC](https://community.sonarsource.com/t/net-project-file-analyzers-has-sonarqube-integration/180359 "2026-03-27T17:43:09Z")

</div>

The .NET Project File Analyzers latest 1.10.0 release has SonarQube integration. The analyzers check for MSBuild files (such as .slnx, .csproj, .vbproj, .props, and .targets) and reports on them hooking onto the Roslyn…

---

## [AzDO SonarQubeAnalyze on pipeline with multiple jobs](https://community.sonarsource.com/t/azdo-sonarqubeanalyze-on-pipeline-with-multiple-jobs/178306)

<div class="topic-metadata">

**Author:** [@bruno\_cicmanec](https://community.sonarsource.com/u/bruno_cicmanec)\
**Replies:** 1\
**Last updated:** [February 26, 2026, 1:03pm UTC](https://community.sonarsource.com/t/azdo-sonarqubeanalyze-on-pipeline-with-multiple-jobs/178306 "2026-02-26T13:03:41Z")

</div>

Hi everyone, I’m looking for guidance on a CI/CD setup question around SonarQube analysis, where tests and coverage generation are split across multiple jobs. In a simple pipeline, a typical sequence is: SonarScanne…

---

## [Doing Build instead of Rebuild](https://community.sonarsource.com/t/doing-build-instead-of-rebuild/150934)

<div class="topic-metadata">

**Author:** [@Andrew\_Mikhailov](https://community.sonarsource.com/u/Andrew_Mikhailov)\
**Replies:** 1\
**Last updated:** [October 21, 2025, 3:23pm UTC](https://community.sonarsource.com/t/doing-build-instead-of-rebuild/150934 "2025-10-21T15:23:41Z")

</div>

Title: Doing Build instead of Rebuild Body: Hi, I’m using the SonarQube MSBuild scanner (v11.0.0) with my .NET solution. Currently, I run a full Rebuild for the first analysis, and then only Build for subsequent runs.…

---

## [No file analyzed on server side (.Net Framework project)](https://community.sonarsource.com/t/no-file-analyzed-on-server-side-net-framework-project/144772)

<div class="topic-metadata">

**Author:** [@Je-taf](https://community.sonarsource.com/u/Je-taf)\
**Replies:** 2\
**Last updated:** [July 23, 2025, 1:33pm UTC](https://community.sonarsource.com/t/no-file-analyzed-on-server-side-net-framework-project/144772 "2025-07-23T13:33:08Z")

</div>

Hi everyone, First, my environment: I’m using SonarScanner.MSBuild.exe 10.3 and Sonar Server 2025.3.1 (zip version). I’m trying to analyze a Visual Studio 2022 solution that contains one project and one test project. …

---

## [Sonar cloud - Ignoring rules with editorconfig is not working](https://community.sonarsource.com/t/sonar-cloud-ignoring-rules-with-editorconfig-is-not-working/119701)

<div class="topic-metadata">

**Author:** [@ABinkowskiATDOCOsoft](https://community.sonarsource.com/u/ABinkowskiATDOCOsoft)\
**Replies:** 10\
**Last updated:** [July 11, 2025, 3:40pm UTC](https://community.sonarsource.com/t/sonar-cloud-ignoring-rules-with-editorconfig-is-not-working/119701 "2025-07-11T15:40:43Z")

</div>

Hi community, Recently I’ve added to my project .editorconfig file in order to ignore some of SonarCloud issues. I followed this advice Excluding files in certain directories for SonarScanner for .NET - SonarCloud - So…

---

## [Incremental Pull Request analysis cache gets zero hits - Sonar scanner for msbuild](https://community.sonarsource.com/t/incremental-pull-request-analysis-cache-gets-zero-hits-sonar-scanner-for-msbuild/142667)

<div class="topic-metadata">

**Author:** [@MarcinJ](https://community.sonarsource.com/u/MarcinJ)\
**Replies:** 3\
**Last updated:** [June 25, 2025, 3:55pm UTC](https://community.sonarsource.com/t/incremental-pull-request-analysis-cache-gets-zero-hits-sonar-scanner-for-msbuild/142667 "2025-06-25T15:55:44Z")

</div>

SonarQube Server Data Center Edition v2025.1.1 SonarScanner for MSBuild 10.1.2 Scanner is run by a Jenkins agent on a Windows Server Plugin csharpenterprise, version 10.4.1.110446 My goal is to reduce SQ scanning tim…

---

## [Visual C++ for Linux development](https://community.sonarsource.com/t/visual-c-for-linux-development/142396)

<div class="topic-metadata">

**Author:** [@LiranDobrish](https://community.sonarsource.com/u/LiranDobrish)\
**Replies:** 3\
**Last updated:** [June 9, 2025, 11:45am UTC](https://community.sonarsource.com/t/visual-c-for-linux-development/142396 "2025-06-09T11:45:00Z")

</div>

Hello I have SonarQube Enterprise (10.1.0) on premise. I’m using Azure DevOps 2022 on premise. I have a C++ project which compiles under Linux (Vcxproj) using the Visual studio “Linux and embedded development for C++”…

---

## [Using sonar in TeamCity Container wrapper](https://community.sonarsource.com/t/using-sonar-in-teamcity-container-wrapper/136439)

<div class="topic-metadata">

**Author:** [@Dominik\_Jeske](https://community.sonarsource.com/u/Dominik_Jeske)\
**Replies:** 5\
**Last updated:** [April 11, 2025, 6:03pm UTC](https://community.sonarsource.com/t/using-sonar-in-teamcity-container-wrapper/136439 "2025-04-11T18:03:28Z")

</div>

We are trying to use Team City Container wrapper and we would like to have sonar start, build, test and sonar end with separate steps but when invoking this in containers sonar is not working (We must invoke all steps in…

---

## [Error while doing the SonarScan for DotNet Project](https://community.sonarsource.com/t/error-while-doing-the-sonarscan-for-dotnet-project/137686)

<div class="topic-metadata">

**Author:** [@viky](https://community.sonarsource.com/u/viky)\
**Replies:** 2\
**Last updated:** [March 24, 2025, 8:03pm UTC](https://community.sonarsource.com/t/error-while-doing-the-sonarscan-for-dotnet-project/137686 "2025-03-24T20:03:50Z")

</div>

SonarScaner Error: SonarScanner.MSBuild.exe begin /k:“${{ inputs.sonar\_project\_key }}”

---

## [SonarQube MSBuild scanner error in Git worktree](https://community.sonarsource.com/t/sonarqube-msbuild-scanner-error-in-git-worktree/2685)

<div class="topic-metadata">

**Author:** [@sly\_ratt](https://community.sonarsource.com/u/sly_ratt)\
**Replies:** 6\
**Last updated:** [November 11, 2024, 5:21pm UTC](https://community.sonarsource.com/t/sonarqube-msbuild-scanner-error-in-git-worktree/2685 "2024-11-11T17:21:40Z")

</div>

The scan fails if the source code of a git branch is checked out in a worktree. In that case “.git” is a file containing the location of the actual “.git” directory for that worktree. SonarQube: 7.3.0.15553 SonarQube S…

---

## [Scanner build wrapper does not publish correct branch](https://community.sonarsource.com/t/scanner-build-wrapper-does-not-publish-correct-branch/128340)

<div class="topic-metadata">

**Author:** [@ken\_activu](https://community.sonarsource.com/u/ken_activu)\
**Replies:** 4\
**Last updated:** [October 21, 2024, 12:57pm UTC](https://community.sonarsource.com/t/scanner-build-wrapper-does-not-publish-correct-branch/128340 "2024-10-21T12:57:02Z")

</div>

Hello, We are using SonarQube v10.7 Developer Edition. When I publish results for a mixed C#/C++ project using the SonarScanner.MSBuild + build-wrapper the corresponding branch is not matched and always publishes to mas…

---

## [Can't get SonarCloud to pickup coverage reports](https://community.sonarsource.com/t/cant-get-sonarcloud-to-pickup-coverage-reports/120800)

<div class="topic-metadata">

**Author:** [@EskoStein](https://community.sonarsource.com/u/EskoStein)\
**Replies:** 3\
**Last updated:** [October 4, 2024, 8:28am UTC](https://community.sonarsource.com/t/cant-get-sonarcloud-to-pickup-coverage-reports/120800 "2024-10-04T08:28:13Z")

</div>

ALM used: Azure DevOps CI system used: Azure DevOps Languages of the repository: C# Dear community, We are facing problems reporting code coverage to SonarCloud with a C# .NET 4.7.2 project. We are using Azure DevOps …

---

## [Why deprecated MsBuild 14/15 warning appears if I am using VS 2022 Build Tools?](https://community.sonarsource.com/t/why-deprecated-msbuild-14-15-warning-appears-if-i-am-using-vs-2022-build-tools/113582)

<div class="topic-metadata">

**Author:** [@kricer](https://community.sonarsource.com/u/kricer)\
**Replies:** 3\
**Last updated:** [September 30, 2024, 1:28pm UTC](https://community.sonarsource.com/t/why-deprecated-msbuild-14-15-warning-appears-if-i-am-using-vs-2022-build-tools/113582 "2024-09-30T13:28:55Z")

</div>

Hi, I hope you can help me to remove a warning I do not understand its origin. I have the following environment: Language: c# (.Net Framework v4.8) MsBuild path: C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\Bu…

---

## [The analysis using MsBuild 14 is no longer supported warning with VS 2022 Build Tools](https://community.sonarsource.com/t/the-analysis-using-msbuild-14-is-no-longer-supported-warning-with-vs-2022-build-tools/123968)

<div class="topic-metadata">

**Author:** [@kricer](https://community.sonarsource.com/u/kricer)\
**Replies:** 1\
**Last updated:** [August 29, 2024, 1:10pm UTC](https://community.sonarsource.com/t/the-analysis-using-msbuild-14-is-no-longer-supported-warning-with-vs-2022-build-tools/123968 "2024-08-29T13:10:21Z")

</div>

I hope you can help me to remove a warning I do not understand its origin. I have the following environment: Language: c# (.Net Framework v4.8) MsBuild path: C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildToo…

---

## [Build failed The “IsTestByReference” task could not be loaded from the assembly](https://community.sonarsource.com/t/build-failed-the-istestbyreference-task-could-not-be-loaded-from-the-assembly/120973)

<div class="topic-metadata">

**Author:** [@indra\_reddy](https://community.sonarsource.com/u/indra_reddy)\
**Replies:** 1\
**Last updated:** [August 21, 2024, 8:10am UTC](https://community.sonarsource.com/t/build-failed-the-istestbyreference-task-could-not-be-loaded-from-the-assembly/120973 "2024-08-21T08:10:11Z")

</div>

Hello, could you please assist me with this? I recently upgraded from Windows 10 to Windows 11, and since then, whenever I configure SonarQube, I receive the problem below. I’m using Visual Studio 2022 with the MsBuild t…

---

## [Azure Devops: Sonar running on build BEFORE SonarCloudPrepare](https://community.sonarsource.com/t/azure-devops-sonar-running-on-build-before-sonarcloudprepare/117656)

<div class="topic-metadata">

**Author:** [@Laurent](https://community.sonarsource.com/u/Laurent)\
**Replies:** 4\
**Last updated:** [August 6, 2024, 10:56am UTC](https://community.sonarsource.com/t/azure-devops-sonar-running-on-build-before-sonarcloudprepare/117656 "2024-08-06T10:56:28Z")

</div>

ALM used: Azure DevOps CI system used: Azure DevOps Hi, In the yaml azure pipeline, we want to build some source with msbuild OUTSIDE sonar, so we do the following: first step of the pipeline is the msbuild command…

---

## [MSBuild compilation taking forever and not even finishing since moved to net48](https://community.sonarsource.com/t/msbuild-compilation-taking-forever-and-not-even-finishing-since-moved-to-net48/120152)

<div class="topic-metadata">

**Author:** [@Ronen\_Raviv](https://community.sonarsource.com/u/Ronen_Raviv)\
**Replies:** 1\
**Last updated:** [August 5, 2024, 2:46pm UTC](https://community.sonarsource.com/t/msbuild-compilation-taking-forever-and-not-even-finishing-since-moved-to-net48/120152 "2024-08-05T14:46:41Z")

</div>

Using SQ 10.6 (upgraded from 10.2 since thought upgrading will help), using latest scanner (have tried all of relevant versions), deployed by Docker, have worked for couple years until we upgraded our .net… wihtout sonar…

---

## [SonarScanner MSBuild error scanning VB web site project](https://community.sonarsource.com/t/sonarscanner-msbuild-error-scanning-vb-web-site-project/119433)

<div class="topic-metadata">

**Author:** [@ariagaluh02](https://community.sonarsource.com/u/ariagaluh02)\
**Replies:** 2\
**Last updated:** [July 23, 2024, 1:42am UTC](https://community.sonarsource.com/t/sonarscanner-msbuild-error-scanning-vb-web-site-project/119433 "2024-07-23T01:42:38Z")

</div>

Hi Sonar Community, I’m using: SonarQube installed on Linux server as a docker container, version Community Edition v10.5.1 (90531) SonnarScanner installed on Windows Server 2016, version 7.0.0.95646-net-framework Git…

---

## [SonarScanner for .Net - Since SonarQube 10.6, NoSuchFileException: NONE](https://community.sonarsource.com/t/sonarscanner-for-net-since-sonarqube-10-6-nosuchfileexception-none/119048)

<div class="topic-metadata">

**Author:** [@vguillemette](https://community.sonarsource.com/u/vguillemette)\
**Replies:** 5\
**Last updated:** [July 15, 2024, 8:41am UTC](https://community.sonarsource.com/t/sonarscanner-for-net-since-sonarqube-10-6-nosuchfileexception-none/119048 "2024-07-15T08:41:17Z")

</div>

Hello, I upgraded SonarQube to version 10.6. From then, on Windows Server, SonarScanner.MSBuild.exe throws “NoSuchFileException: NONE”. I thought of a ssl certificate issue, but server version is accurately displayed …

---

## [Sonarqube encoding set to windows-1252 but skips files stating that it is set to UTF-8](https://community.sonarsource.com/t/sonarqube-encoding-set-to-windows-1252-but-skips-files-stating-that-it-is-set-to-utf-8/118040)

<div class="topic-metadata">

**Author:** [@jankolinhart\_kfw](https://community.sonarsource.com/u/jankolinhart_kfw)\
**Replies:** 1\
**Last updated:** [July 2, 2024, 1:31pm UTC](https://community.sonarsource.com/t/sonarqube-encoding-set-to-windows-1252-but-skips-files-stating-that-it-is-set-to-utf-8/118040 "2024-07-02T13:31:42Z")

</div>

Context: SonarScanner.MSBuild.exe encoding is kept at platform default “windows-1252”. In the scanner log this is confirmed as follows: INFO: Analyzing on SonarQube server 9.9.0.65466 INFO: Default locale: “en\_US”, …

---

## [Unparsable TypeScript file generates an error even when excluded](https://community.sonarsource.com/t/unparsable-typescript-file-generates-an-error-even-when-excluded/117425)

<div class="topic-metadata">

**Author:** [@TomasMalecek](https://community.sonarsource.com/u/TomasMalecek)\
**Replies:** 3\
**Last updated:** [June 19, 2024, 2:46pm UTC](https://community.sonarsource.com/t/unparsable-typescript-file-generates-an-error-even-when-excluded/117425 "2024-06-19T14:46:39Z")

</div>

In a C# test project, I have an unparsable JavaScript file as part of the test data. The SonarQubeAnalyze@5 task in a DevOps Server 2022u1 YAML pipeline, provided by SonarQube DevOps extension 5.19.1, using SonarQube Ent…

---

## [Can't Execute Sonar Scanner Because of MSBuild Version](https://community.sonarsource.com/t/cant-execute-sonar-scanner-because-of-msbuild-version/116596)

<div class="topic-metadata">

**Author:** [@ghea\_irzaqdiah](https://community.sonarsource.com/u/ghea_irzaqdiah)\
**Replies:** 1\
**Last updated:** [June 4, 2024, 8:27am UTC](https://community.sonarsource.com/t/cant-execute-sonar-scanner-because-of-msbuild-version/116596 "2024-06-04T08:27:31Z")

</div>

It might be out of topic, but since this project relate with sonarqube, i need to know what should i do if i found: error MSB4132: The tools version “15.0” is unrecognized. while trying to run MsBuild.exe /t:Build FYI…

---

## [SonarQubeAnalyze@4 fails because of missing directory](https://community.sonarsource.com/t/sonarqubeanalyze-4-fails-because-of-missing-directory/116395)

<div class="topic-metadata">

**Author:** [@Nekto](https://community.sonarsource.com/u/Nekto)\
**Replies:** 1\
**Last updated:** [June 2, 2024, 7:29am UTC](https://community.sonarsource.com/t/sonarqubeanalyze-4-fails-because-of-missing-directory/116395 "2024-06-02T07:29:24Z")

</div>

SonarQube 9.9.1 Azure DevOps Services Run Code Analysis 4.36.1 CMake 3.29.3 Visual Studio 16 2019 Hi, I have the same problem as in closed topic New CMake versions generate temporary folders that are deleted before …

---

## [MSBuild mode: How to scan c#, csproj and nuget.config files in same scan?](https://community.sonarsource.com/t/msbuild-mode-how-to-scan-c-csproj-and-nuget-config-files-in-same-scan/114700)

<div class="topic-metadata">

**Author:** [@Andre\_Hansen](https://community.sonarsource.com/u/Andre_Hansen)\
**Replies:** 7\
**Last updated:** [May 7, 2024, 2:34pm UTC](https://community.sonarsource.com/t/msbuild-mode-how-to-scan-c-csproj-and-nuget-config-files-in-same-scan/114700 "2024-05-07T14:34:32Z")

</div>

In short I have written custom XPATH xml rules to detect problems with the nuget.config and csproj, i have confirmed the rules work when not using scannerMode MSBuild. However, trying combine MSBuild to detect c# proble…

---

## [Code Coverage is not shown in the SonarQube](https://community.sonarsource.com/t/code-coverage-is-not-shown-in-the-sonarqube/113060)

<div class="topic-metadata">

**Author:** [@RaptoR](https://community.sonarsource.com/u/RaptoR)\
**Replies:** 3\
**Last updated:** [April 11, 2024, 3:25pm UTC](https://community.sonarsource.com/t/code-coverage-is-not-shown-in-the-sonarqube/113060 "2024-04-11T15:25:50Z")

</div>

Hi! I have SonarQube installed on a Windows agent in Jenkins. I want to see code coverage percentage and unit tests in SonarQube. I used the official documentation for all the commands. Here is my example: withSonarQ…

---

## [Does SonarQUbe supports GBE framework?](https://community.sonarsource.com/t/does-sonarqube-supports-gbe-framework/111352)

<div class="topic-metadata">

**Author:** [@Pallavi.bansal](https://community.sonarsource.com/u/Pallavi.bansal)\
**Replies:** 1\
**Last updated:** [March 16, 2024, 8:19am UTC](https://community.sonarsource.com/t/does-sonarqube-supports-gbe-framework/111352 "2024-03-16T08:19:11Z")

</div>

0 We are running below command to build the wrapper script with SonarQube : D:\\build-wrapper-win-x86\\build-wrapper-win-x86-64.exe --out-dir BUILD\_WRAPPER\_OUT\_DIR run\_scm.cmd generate\_Dev\_Pipeline.scm where “run\_scm.cm…

---

## [SonarQubeAnalyze@4 fails with The base directory of the module '47FC3477-1769-3BF1-9D9C-F82E22B35809](https://community.sonarsource.com/t/sonarqubeanalyze-4-fails-with-the-base-directory-of-the-module-47fc3477-1769-3bf1-9d9c-f82e22b35809/105894)

<div class="topic-metadata">

**Author:** [@inbar.barkai.mdt](https://community.sonarsource.com/u/inbar.barkai.mdt)\
**Replies:** 6\
**Last updated:** [December 22, 2023, 1:08pm UTC](https://community.sonarsource.com/t/sonarqubeanalyze-4-fails-with-the-base-directory-of-the-module-47fc3477-1769-3bf1-9d9c-f82e22b35809/105894 "2023-12-22T13:08:56Z")

</div>

Environment: SonarQube 9.9 Azure DevOps server 2020 Azure pipelines CMake 3.26.3 Visual Studio 17 2022 I created a pipeline to run SonarQube analysis on the CMake project. The project is C++/CLR DLL which I intend to…

---

## [Mix C# /C++ The "build-wrapper-dump.json" file was found but 0 C/C++/Objective-C files were analyzed](https://community.sonarsource.com/t/mix-c-c-the-build-wrapper-dump-json-file-was-found-but-0-c-c-objective-c-files-were-analyzed/105958)

<div class="topic-metadata">

**Author:** [@lbarraud](https://community.sonarsource.com/u/lbarraud)\
**Replies:** 6\
**Last updated:** [December 14, 2023, 3:53pm UTC](https://community.sonarsource.com/t/mix-c-c-the-build-wrapper-dump-json-file-was-found-but-0-c-c-objective-c-files-were-analyzed/105958 "2023-12-14T15:53:44Z")

</div>

Hi Sonar Team, which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension): SonarQube v9.9.2 (build 77730) - Developer Edition BuildWrapper v6.41.1 (for C++ analysis) dotnet-sonarscanner v…

---

## [Autogenerated files are started to show up in SonarCloud code since azure devops extension 4.42](https://community.sonarsource.com/t/autogenerated-files-are-started-to-show-up-in-sonarcloud-code-since-azure-devops-extension-4-42/102737)

<div class="topic-metadata">

**Author:** [@worming004](https://community.sonarsource.com/u/worming004)\
**Replies:** 12\
**Last updated:** [October 24, 2023, 7:13am UTC](https://community.sonarsource.com/t/autogenerated-files-are-started-to-show-up-in-sonarcloud-code-since-azure-devops-extension-4-42/102737 "2023-10-24T07:13:24Z")

</div>

ALM : Azure Devops CI : Azure DevOps Scanner command used: - task: SonarCloudAnalyze@1 displayName: 'Analyse SonarCloud' Languages of the repository : c# Hello Starting today (17 october 2023), SonarCloud is ask…

---

## [Parallel ADO pipelines locking SonarScanner.MSBuild.Common.dll](https://community.sonarsource.com/t/parallel-ado-pipelines-locking-sonarscanner-msbuild-common-dll/101699)

<div class="topic-metadata">

**Author:** [@DHCSO](https://community.sonarsource.com/u/DHCSO)\
**Replies:** 4\
**Last updated:** [October 19, 2023, 1:51pm UTC](https://community.sonarsource.com/t/parallel-ado-pipelines-locking-sonarscanner-msbuild-common-dll/101699 "2023-10-19T13:51:02Z")

</div>

Must-share information (formatted with Markdown): which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension) Developer Edition Version 9.9 (build 65466) how is SonarQube deployed: zip, Docke…

[Next page](https://community.sonarsource.com/tag/msbuild/30.md?match_all_tags=true&page=1&tags%5B%5D=msbuild)
