Search code examples
c#sonarqubeteamcitycode-metrics

MSBuild.SonarQube.Runner.Tool not analyzing .cs files


I am trying to use Sonarqube for code analysis with team city integrated using cake build.

For some reason Sonarqube does not analyze .cs files.(currently analyzes js/css/xml)

Is it a problem with the agent being used for the build? Some settings to be done in Sonarqube/Teamcity?

Help will be greatly appreciated.


Solution

  • The Roslyn compiler on build agents needed to be updated as Sonar required newer versions.