Csharp in SonarCloud is not recognized nor analysed

Template for a good new topic, formatted with Markdown:

  • ALM CI used : Azure DevOps
  • Scanner command used when applicable : Azure devops YAML command
    - task: SonarCloudAnalyze@1
  • Languages of the repository : c #
  • Error observed : CS code is not recognise and analysed

Langage settings is prperly set

→ Why? How to force SonarCloud to analysed CS code?


Are you using automatic analysis? It doesn’t support C#.

You’ll need to set up analysis using the SonarScanner for .NET.


Hello, Thank you for your help.
I have set the proper scanner mode in the prepare task and it works much better :

- task: SonarCloudPrepare@1

  • inputs:*
  •  SonarCloud: 'SonarCloud-SCDevOps-DAM'*
  •  organization: 'mycompany'*
  •  scannerMode: 'MSBuild'*
  •  projectKey: 'mycompany_DAM-FR'*
  •  projectName: 'DAM-FR'*

The subject can be closed.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.