Skip to content
| Marketplace
Sign in
Azure DevOps>Azure Pipelines>Use .NET Core SonarCloud
Use .NET Core SonarCloud

Use .NET Core SonarCloud

Stano Peťko

|
227 installs
| (0) | Free
Allows to run SonarCloud for .NET Core projects on on-premise build agents behind corporate proxy.
Get it free

Description

This extension provides a helper task for SonarCloud.

SonarCloud extension does not work for .NET Core (C#) projects behind corporate proxy. The issue is discussed on SonarSource community:

  • SonarCloud tasks in Azure DevOps build pipeline do not work with C# projects behind the corporate proxy
  • Latest version of SonarCloud DevOps tasks (current do not work behind corporate proxy)

As described in this working concept, the SonarCloud Prepare extension works correctly when the libraries are replaced with the .NET Core build. And that's, what this extension is doing. It just replaces files in original SonarCloud Prepare extension. The files are replaced with .NET Core build (netcoreapp3.0) of original Sonar Scanner for MSBuild repository. The libraries were built from commit 10eeb6638833bf74d61869841ac706c79eb10f26.

Usage

The usage is very simple, just add this task as step in pipeline before the SonarCloud Prepare task. UseNetCoreSonarCloud works only for MSBuild scanner mode of SonarCloud Prepare.

- task: UseNetCoreSonarCloud@1

- task: SonarCloudPrepare@1
  inputs:
    SonarCloud: 'service-connection'
    scannerMode: 'MSBuild'
    organization: 'org-key'
    projectKey: 'project-key'
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft