jeromeLac
(lacarriere)
1
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?
ganncamp
(G Ann Campbell)
2
Hi,
Are you using automatic analysis? It doesn’t support C#.
You’ll need to set up analysis using the SonarScanner for .NET.
HTH,
Ann
jeromeLac
(lacarriere)
3
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.
Sincerely
jerome
1 Like
system
(system)
Closed
4
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.