Jenkins plugin "Execute sonarqube scanner" NOT analyze C# code

Must-share information:

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    sq 7.2.1, scanner 3.0.3.778, plugin 2.6.1,jenkins 2.134
  • what are you trying to achieve
    use plugin “Execute sonarqube scanner” to analyze C# code.
  • what have you tried so far to achieve this
    see attached snapshot.

the editor seems can not save more snapshot.it prompt “Sorry, an error has occurred.”


no C# code analyzed in project report.

Hi @carrison,

It seems like you are running the wrong scanner. To analyzer C# you need to use the scanner for msbuild (please have a look at the documentation ).

Cheers,
Amaury

Absolutely. scanner for msbuild works fine. But why swq scanner not analyse c# code?

I can quickly comment on that:

Good insights in this post:

2 Likes