# \#dotnet

**URL:** https://community.sonarsource.com/tag/dotnet/78.md?page=1

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

**Page:** 2

---

## [\[SCA, C++, vcpkg\] Results may be missing due to analysis errors](https://community.sonarsource.com/t/sca-c-vcpkg-results-may-be-missing-due-to-analysis-errors/186175)

<div class="topic-metadata">

**Author:** [@milbrandt](https://community.sonarsource.com/u/milbrandt)\
**Replies:** 1\
**Last updated:** [July 22, 2026, 9:29am UTC](https://community.sonarsource.com/t/sca-c-vcpkg-results-may-be-missing-due-to-analysis-errors/186175 "2026-07-22T09:29:04Z")

</div>

ALM used Azure DevOps Servie CI system used Azure DevOps self-hosted agent Scanner command used when applicable (private details masked) Languages of the repository: C++23, C# Error observed (wrap logs/code…

---

## [Upgrading SonarQubeCloud tasks from v2 to v4 in ADO changed total LOC analyzed](https://community.sonarsource.com/t/upgrading-sonarqubecloud-tasks-from-v2-to-v4-in-ado-changed-total-loc-analyzed/186028)

<div class="topic-metadata">

**Author:** [@AlexJulita](https://community.sonarsource.com/u/AlexJulita)\
**Replies:** 1\
**Last updated:** [July 21, 2026, 6:20am UTC](https://community.sonarsource.com/t/upgrading-sonarqubecloud-tasks-from-v2-to-v4-in-ado-changed-total-loc-analyzed/186028 "2026-07-21T06:20:26Z")

</div>

Template for a good new topic, formatted with Markdown: ALM used : Azure DevOps Services CI system used: Azure DevOps Scanner command used when applicable (private details masked) Languages of the repository : C# We’v…

---

## [SonarQube for Visual Studio 10.6 - Analyzers update and end of support for SQS 9.9 LTA](https://community.sonarsource.com/t/sonarqube-for-visual-studio-10-6-analyzers-update-and-end-of-support-for-sqs-9-9-lta/186293)

<div class="topic-metadata">

**Author:** [@Farah](https://community.sonarsource.com/u/Farah)\
**Replies:** 0\
**Last updated:** [July 20, 2026, 7:56pm UTC](https://community.sonarsource.com/t/sonarqube-for-visual-studio-10-6-analyzers-update-and-end-of-support-for-sqs-9-9-lta/186293 "2026-07-20T19:56:15Z")

</div>

Hello Visual Studio community, The SonarQube for IDE: Visual Studio version 10.6 is now available! For those of you that are in connected mode with SonarQube Server, we would like to inform you that support for LTA ver…

---

## [New Rules for C# and VB.NET](https://community.sonarsource.com/t/new-rules-for-c-and-vb-net/186077)

<div class="topic-metadata">

**Author:** [@adam.wilson](https://community.sonarsource.com/u/adam.wilson)\
**Replies:** 0\
**Last updated:** [July 17, 2026, 10:02am UTC](https://community.sonarsource.com/t/new-rules-for-c-and-vb-net/186077 "2026-07-17T10:02:48Z")

</div>

Hi .NET folks The .NET analyzer is updated with a new rule along with false-positive fixes and and rule description improvements. The new rule (S8717) prevents an application crash in the case that multiple \[Key\] attrib…

---

## [Published Coverage Differs from VSTest Coverage Report](https://community.sonarsource.com/t/published-coverage-differs-from-vstest-coverage-report/184580)

<div class="topic-metadata">

**Author:** [@anon30296475](https://community.sonarsource.com/u/anon30296475)\
**Replies:** 1\
**Last updated:** [July 8, 2026, 2:35am UTC](https://community.sonarsource.com/t/published-coverage-differs-from-vstest-coverage-report/184580 "2026-07-08T02:35:57Z")

</div>

Quality Gate extension failing with lower than expected coverage: Note: Unchanged lines are being reported as new lines. VS Test coverage significantly higher: Using the latest version, i.e. v4, of the Sonar bu…

---

## [Unit tests coverage flags parenthesis as uncovered code](https://community.sonarsource.com/t/unit-tests-coverage-flags-parenthesis-as-uncovered-code/184347)

<div class="topic-metadata">

**Author:** [@mihai\_onoprienco](https://community.sonarsource.com/u/mihai_onoprienco)\
**Replies:** 1\
**Last updated:** [July 2, 2026, 1:24pm UTC](https://community.sonarsource.com/t/unit-tests-coverage-flags-parenthesis-as-uncovered-code/184347 "2026-07-02T13:24:57Z")

</div>

Hello I have this server version Enterprise Edition v2025.1.7 (121414) The azure devops preparation task is configured as: - task: SonarQubePrepare@6.3.2 displayName: 'Prepare analysis on SonarQube' enabled: 'tr…

---

## [Scanner for .NET/ADO SonarCloud Prepare Task failing with Plugin resource not found: securitycsharp](https://community.sonarsource.com/t/scanner-for-net-ado-sonarcloud-prepare-task-failing-with-plugin-resource-not-found-securitycsharp/184462)

<div class="topic-metadata">

**Author:** [@rvilhena10](https://community.sonarsource.com/u/rvilhena10)\
**Replies:** 18\
**Last updated:** [July 1, 2026, 10:19am UTC](https://community.sonarsource.com/t/scanner-for-net-ado-sonarcloud-prepare-task-failing-with-plugin-resource-not-found-securitycsharp/184462 "2026-07-01T10:19:48Z")

</div>

CI system used: Azure DevOps Languages of the repository: C# Error observed Plugin resource not found: securitycsharpfrontend, version 11.35.0.47322. Resource: SonarAnalyzer.Security.CSharp-11.35.0.47322.zip. …

---

## [Narrow awaiting scope](https://community.sonarsource.com/t/narrow-awaiting-scope/183330)

<div class="topic-metadata">

**Author:** [@Corniel](https://community.sonarsource.com/u/Corniel)\
**Replies:** 3\
**Last updated:** [June 30, 2026, 3:08pm UTC](https://community.sonarsource.com/t/narrow-awaiting-scope/183330 "2026-06-30T15:08:23Z")

</div>

By default, the await is applied on the full expression. This can lead to issues when the result of the awaited task is used as part of the expression. Like in this example: public override async Task RegisterCodeFixesA…

---

## [SonarCloudAnalyze@4 task has 'java' demand but doesn't actually need it](https://community.sonarsource.com/t/sonarcloudanalyze-4-task-has-java-demand-but-doesnt-actually-need-it/181630)

<div class="topic-metadata">

**Author:** [@Manuel.P](https://community.sonarsource.com/u/Manuel.P)\
**Replies:** 2\
**Last updated:** [June 29, 2026, 6:34am UTC](https://community.sonarsource.com/t/sonarcloudanalyze-4-task-has-java-demand-but-doesnt-actually-need-it/181630 "2026-06-29T06:34:15Z")

</div>

ALM used: Azure DevOps CI system used: Azure DevOps Scanner command used when applicable: not relevant Languages of the repository: not relevant Only if the SonarCloud project is public, the URL: private Error observed:…

---

## [Analysis hangs at "will be analysed by SonarJasmin" on Azure DevOps Pipeline](https://community.sonarsource.com/t/analysis-hangs-at-will-be-analysed-by-sonarjasmin-on-azure-devops-pipeline/142252)

<div class="topic-metadata">

**Author:** [@anon30296475](https://community.sonarsource.com/u/anon30296475)\
**Replies:** 24\
**Last updated:** [July 1, 2025, 8:32am UTC](https://community.sonarsource.com/t/analysis-hangs-at-will-be-analysed-by-sonarjasmin-on-azure-devops-pipeline/142252 "2025-07-01T08:32:54Z")

</div>

Analysis hangs at “n file(s) will be analysed by SonarJasmin”. Left for hours, yet does not progress beyond this log message. Build Pipeline: Azure DevOps Visual Studio Project: ASP.NET MVC C# Issue started from yest…

---

## [Different sonar scanner shows different LOC](https://community.sonarsource.com/t/different-sonar-scanner-shows-different-loc/183258)

<div class="topic-metadata">

**Author:** [@Ahmed\_Ghareeb](https://community.sonarsource.com/u/Ahmed_Ghareeb)\
**Replies:** 3\
**Last updated:** [June 17, 2026, 12:00pm UTC](https://community.sonarsource.com/t/different-sonar-scanner-shows-different-loc/183258 "2026-06-17T12:00:57Z")

</div>

I am using SonarQube server Enterprise Edition v2026.1 (119033), deployed using a zip on Ubuntu 24.04. I want to combine the analysis of C# code and C\\C++ code. Initially, we used to have C++ analysis on a separate SQ p…

---

## [Pre-processing failed. Exit code: 1](https://community.sonarsource.com/t/pre-processing-failed-exit-code-1/181539)

<div class="topic-metadata">

**Author:** [@lprada](https://community.sonarsource.com/u/lprada)\
**Replies:** 10\
**Last updated:** [June 4, 2026, 6:09pm UTC](https://community.sonarsource.com/t/pre-processing-failed-exit-code-1/181539 "2026-06-04T18:09:24Z")

</div>

I ma getting this errors 14:02:51.849 Server Url: \[https://sonarcloud.io\](https://sonarcloud.io/) 14:02:51.849 Api Url: \[https://api.sonarcloud.io\](https://api.sonarcloud.io/) 14:02:51.849 Is SonarCloud: True 14:02:5…

---

## [SonarQube Quality Gate - Waiting forever and doesn't get completed](https://community.sonarsource.com/t/sonarqube-quality-gate-waiting-forever-and-doesnt-get-completed/182989)

<div class="topic-metadata">

**Author:** [@Paulo\_Quicoli](https://community.sonarsource.com/u/Paulo_Quicoli)\
**Replies:** 3\
**Last updated:** [June 2, 2026, 1:01pm UTC](https://community.sonarsource.com/t/sonarqube-quality-gate-waiting-forever-and-doesnt-get-completed/182989 "2026-06-02T13:01:13Z")

</div>

Must-share information (formatted with Markdown): which versions are you using (SonarQube Server / Community Build, Scanner, Plugin, and any relevant extension) Developer Edition v2025.2 (105476) how is SonarQub…

---

## [False Positive on S2629 using log4net](https://community.sonarsource.com/t/false-positive-on-s2629-using-log4net/138582)

<div class="topic-metadata">

**Author:** [@dt-fastec](https://community.sonarsource.com/u/dt-fastec)\
**Replies:** 10\
**Last updated:** [June 1, 2026, 8:02am UTC](https://community.sonarsource.com/t/false-positive-on-s2629-using-log4net/138582 "2026-06-01T08:02:22Z")

</div>

Hi, we are using the SonarQube Server Developer Edition (v2025.2) with C#. The rule S2629 seems to be correct für the Microsoft logging framework but I think it is misleading using log4net (3.0.0). log4net can’t handl…

---

## [org.sonarsource.sonarlint.omnisharp.protocol.OmnisharpResponseP - MSBuild failed to load the project](https://community.sonarsource.com/t/org-sonarsource-sonarlint-omnisharp-protocol-omnisharpresponsep-msbuild-failed-to-load-the-project/182822)

<div class="topic-metadata">

**Author:** [@Jakob](https://community.sonarsource.com/u/Jakob)\
**Replies:** 1\
**Last updated:** [June 1, 2026, 6:57am UTC](https://community.sonarsource.com/t/org-sonarsource-sonarlint-omnisharp-protocol-omnisharpresponsep-msbuild-failed-to-load-the-project/182822 "2026-06-01T06:57:15Z")

</div>

If your question is about SonarQube for IDE in the IntelliJ Platform, VS Code, Visual Studio, or Eclipse, please post it in that sub-category. Otherwise, please provide: Operating system: Windows 11 IDE name and flavo…

---

## [Reduce verbosity in sonarscanner for .net](https://community.sonarsource.com/t/reduce-verbosity-in-sonarscanner-for-net/182619)

<div class="topic-metadata">

**Author:** [@JuanZamudioGBM](https://community.sonarsource.com/u/JuanZamudioGBM)\
**Replies:** 5\
**Last updated:** [May 29, 2026, 10:23pm UTC](https://community.sonarsource.com/t/reduce-verbosity-in-sonarscanner-for-net/182619 "2026-05-29T22:23:48Z")

</div>

We have repos in .NET 10 where we are using dotnet sonarscanner (version 11.2.1) to analyze the code (in AWS CODEBUILD), the configuration of sonar is currently like this: dotnet sonarscanner begin /k:"project" …

---

## [\[error\]ERROR: Could not find the pullrequest with key](https://community.sonarsource.com/t/error-error-could-not-find-the-pullrequest-with-key/182481)

<div class="topic-metadata">

**Author:** [@rufer7](https://community.sonarsource.com/u/rufer7)\
**Replies:** 12\
**Last updated:** [May 28, 2026, 3:24pm UTC](https://community.sonarsource.com/t/error-error-could-not-find-the-pullrequest-with-key/182481 "2026-05-28T15:24:13Z")

</div>

We are currently getting the following error in the Azure DevOps YAML pipeline logs of step SonarCloudAnalyze@3. However, not in every run of the pipeline which is super strange. \[error\]ERROR: Could not find the pullreq…

---

## [Error on quality profiles page](https://community.sonarsource.com/t/error-on-quality-profiles-page/182856)

<div class="topic-metadata">

**Author:** [@TBakkum](https://community.sonarsource.com/u/TBakkum)\
**Replies:** 1\
**Last updated:** [May 27, 2026, 12:27pm UTC](https://community.sonarsource.com/t/error-on-quality-profiles-page/182856 "2026-05-27T12:27:20Z")

</div>

Hello! We are trialing the SonarQube Cloud service and are trying to integrate the scanner service into our Azure DevOps pipeline. Last week we were able to use the service while using the Automatic Analysis, but in ord…

---

## [Broken: APIs stopped accepting organization tokens in Basic Auth](https://community.sonarsource.com/t/broken-apis-stopped-accepting-organization-tokens-in-basic-auth/182666)

<div class="topic-metadata">

**Author:** [@Jaren\_Lamprecht](https://community.sonarsource.com/u/Jaren_Lamprecht)\
**Replies:** 2\
**Last updated:** [May 21, 2026, 10:51pm UTC](https://community.sonarsource.com/t/broken-apis-stopped-accepting-organization-tokens-in-basic-auth/182666 "2026-05-21T22:51:53Z")

</div>

We rely on dotnet-sonarscanner (GitHub - SonarSource/sonar-scanner-msbuild: SonarScanner for .NET · GitHub), and today it stopped authenticating with our organization API key. After testing the validate API with the sam…

---

## [No issues found in recent version of SonarQube for IDE plugin in Rider](https://community.sonarsource.com/t/no-issues-found-in-recent-version-of-sonarqube-for-ide-plugin-in-rider/182054)

<div class="topic-metadata">

**Author:** [@MTurnhoutGt](https://community.sonarsource.com/u/MTurnhoutGt)\
**Replies:** 2\
**Last updated:** [May 12, 2026, 11:42am UTC](https://community.sonarsource.com/t/no-issues-found-in-recent-version-of-sonarqube-for-ide-plugin-in-rider/182054 "2026-05-12T11:42:05Z")

</div>

Please provide Operating system: Windows 11 SonarQube for IDE plugin version: 12.2.0.84584 Rider version: 2026.1.1 Programming language you’re coding in: C# Is connected mode used: SonarQube Cloud, SonarQube Server, o…

---

## [SonarCommunity Roundup, May 2 - 8](https://community.sonarsource.com/t/sonarcommunity-roundup-may-2-8/182133)

<div class="topic-metadata">

**Author:** [@ganncamp](https://community.sonarsource.com/u/ganncamp)\
**Replies:** 0\
**Last updated:** [May 8, 2026, 1:26pm UTC](https://community.sonarsource.com/t/sonarcommunity-roundup-may-2-8/182133 "2026-05-08T13:26:06Z")

</div>

First an administrative note: I mentioned a couple weeks ago that Community email subject lines would be simplifying soon. That feature became available yesterday and I turned it on immediately. So your inbox may look a …

---

## [SonarCloudAnalyze Azure DevOps Task jar download marked as virus](https://community.sonarsource.com/t/sonarcloudanalyze-azure-devops-task-jar-download-marked-as-virus/181898)

<div class="topic-metadata">

**Author:** [@beckerdk](https://community.sonarsource.com/u/beckerdk)\
**Replies:** 5\
**Last updated:** [May 5, 2026, 6:06pm UTC](https://community.sonarsource.com/t/sonarcloudanalyze-azure-devops-task-jar-download-marked-as-virus/181898 "2026-05-05T18:06:21Z")

</div>

Hello, We use the SonarCloudAnalyze@V3 task in Azure DevOps pipelines to analyze our code during CI/CD. The Agent is on-prem and as of yesterday, one of the pieces it appears to try to download or use is being reported …

---

## [(C#) Start pointer should be before end pointer](https://community.sonarsource.com/t/c-start-pointer-should-be-before-end-pointer/181919)

<div class="topic-metadata">

**Author:** [@TaffarelJr](https://community.sonarsource.com/u/TaffarelJr)\
**Replies:** 3\
**Last updated:** [May 1, 2026, 3:38pm UTC](https://community.sonarsource.com/t/c-start-pointer-should-be-before-end-pointer/181919 "2026-05-01T15:38:56Z")

</div>

I suddenly started getting the Start pointer should be before end pointer error message in my latest PR, from the Sonar Scanner for .NET/msbuild. Looking online, I saw other instances of this error in the past due to sp…

---

## [Monorepo - how to setup automatic analysis based on folder structure?](https://community.sonarsource.com/t/monorepo-how-to-setup-automatic-analysis-based-on-folder-structure/181878)

<div class="topic-metadata">

**Author:** [@milbrandt](https://community.sonarsource.com/u/milbrandt)\
**Replies:** 1\
**Last updated:** [May 1, 2026, 1:09pm UTC](https://community.sonarsource.com/t/monorepo-how-to-setup-automatic-analysis-based-on-folder-structure/181878 "2026-05-01T13:09:09Z")

</div>

Template for a good new topic, formatted with Markdown: ALM used: Azure DevOps CI system used: Azure DevOps Scanner command used when applicable (private details masked) Languages of the repository: VB6, C++ (Visual St…

---

## [FP S1210: Implementing comparable operators for file types](https://community.sonarsource.com/t/fp-s1210-implementing-comparable-operators-for-file-types/181047)

<div class="topic-metadata">

**Author:** [@Corniel](https://community.sonarsource.com/u/Corniel)\
**Replies:** 1\
**Last updated:** [May 1, 2026, 10:50am UTC](https://community.sonarsource.com/t/fp-s1210-implementing-comparable-operators-for-file-types/181047 "2026-05-01T10:50:23Z")

</div>

See : FP S1210: Implementing comparable operators for private types, this rule should also ignore types with the file visibility. file readonly struct Entry(int n): IComparable\<Entry\> // FP, files classes should be mini…

---

## [csharp:S1125 FP comparing nullable bool to bool literal](https://community.sonarsource.com/t/csharp-s1125-fp-comparing-nullable-bool-to-bool-literal/179773)

<div class="topic-metadata">

**Author:** [@jilles-sg](https://community.sonarsource.com/u/jilles-sg)\
**Replies:** 3\
**Last updated:** [April 23, 2026, 2:50pm UTC](https://community.sonarsource.com/t/csharp-s1125-fp-comparing-nullable-bool-to-bool-literal/179773 "2026-04-23T14:50:15Z")

</div>

What language is this for? C# Which rule? S1125 Why do you believe it’s a false-positive/false-negative? Comparing a value of type bool? to a boolean literal using == or != does not make the boolean literal redundant, s…

---

## [Authentication with the server has failed error when running Azure DevOps Pipeline](https://community.sonarsource.com/t/authentication-with-the-server-has-failed-error-when-running-azure-devops-pipeline/181581)

<div class="topic-metadata">

**Author:** [@rvilhena10](https://community.sonarsource.com/u/rvilhena10)\
**Replies:** 7\
**Last updated:** [April 23, 2026, 2:44pm UTC](https://community.sonarsource.com/t/authentication-with-the-server-has-failed-error-when-running-azure-devops-pipeline/181581 "2026-04-23T14:44:50Z")

</div>

SonarQube Cloud Version : 4.2.3 Getting the error bellow when running the Prepare Task. This is preventing the pipeline to run. Starting: SonarCloudPrepare ========================================================…

---

## [Azure DevOps Pipeline failing on SonarCloudPrepare Task - Authentication with the server has failed](https://community.sonarsource.com/t/azure-devops-pipeline-failing-on-sonarcloudprepare-task-authentication-with-the-server-has-failed/181290)

<div class="topic-metadata">

**Author:** [@rvilhena10](https://community.sonarsource.com/u/rvilhena10)\
**Replies:** 6\
**Last updated:** [April 21, 2026, 12:32pm UTC](https://community.sonarsource.com/t/azure-devops-pipeline-failing-on-sonarcloudprepare-task-authentication-with-the-server-has-failed/181290 "2026-04-21T12:32:05Z")

</div>

We are getting an error on a Prepare Task of a pipeline after updating it to the version 3. 13:26:00.895 WARNING: Authentication with the server has failed. Full Log below: Starting: SonarCloudPrepare ==============…

---

## [External Roslyn Rules HelpLink not displayed](https://community.sonarsource.com/t/external-roslyn-rules-helplink-not-displayed/181234)

<div class="topic-metadata">

**Author:** [@Corniel](https://community.sonarsource.com/u/Corniel)\
**Replies:** 1\
**Last updated:** [April 21, 2026, 8:38am UTC](https://community.sonarsource.com/t/external-roslyn-rules-helplink-not-displayed/181234 "2026-04-21T08:38:12Z")

</div>

SonarQube has a wonderful support external Roslyn rules. When violated they show up in PR’s just is Sonar’s rules. When clicked on, you are navigated to an URL like this: https://sonarcloud.io/organizations/my\_organizat…

---

## [FP/FN 1764: Impure methods are not guarenteed to return the same value twice](https://community.sonarsource.com/t/fp-fn-1764-impure-methods-are-not-guarenteed-to-return-the-same-value-twice/180589)

<div class="topic-metadata">

**Author:** [@Corniel](https://community.sonarsource.com/u/Corniel)\
**Replies:** 8\
**Last updated:** [April 20, 2026, 12:12pm UTC](https://community.sonarsource.com/t/fp-fn-1764-impure-methods-are-not-guarenteed-to-return-the-same-value-twice/180589 "2026-04-20T12:12:58Z")

</div>

Rule 1764 states that equal expressions on both sides of the && operator should be changed, as this is likely a bug. That sounds all reasonable and fair, but than check this code: namespace System.Collections.Generic; …

[Previous page](https://community.sonarsource.com/tag/dotnet/78.md?match_all_tags=true&tags%5B%5D=dotnet)

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