Relationship between SonarQube Runner and SonarQube.MSBuild.Runner

1.1k views Asked by At

Regarding the announcement of SonarQube integration with MSBuild and Team Build, can anyone advise on the relationship between SonarQube Runner and SonarQube.MSBuild.Runner? I'm unclear whether SonarQube.MSBuild.Runner replaces SonarQube Runner or whether it sits on top of it.

1

There are 1 answers

2
duncanp On BEST ANSWER

@Techtwaddle is correct: the MSBuild.Runner invokes the sonar-runner.

The MSBuild.Runner v0.9 does the following:

  • fetches configuration settings from the SonarQube server;
  • gathers information during the MSBuild phase;
  • generates a sonar-project.properties file;
  • invokes the sonar-runner to carry out further analysis.

Some of the analysis is now performed before calling the sonar-runner. For example, FxCop analysis is now happens as part of the MSBuild phase rather than being invoked from the sonar-runner.

Currently, you have to manually install both the sonar-runner and the MSBuild.Runner. Work is planned to change this so you will only need to install the MSBuild.Runner. See http://jira.sonarsource.com/browse/SONARMSBRU-42.