|By SonarSource – MIT –
Issue Tracker –
SonarQube Scanner for MSBuild 188.8.131.526 – Compatible with SonarQube 5.6+ (LTS)
The SonarQube Scanner for MSBuild is the recommended way to launch a SonarQube analysis on MSBuild projects and solutions. It is the result of a collaboration between SonarSource and Microsoft.
It is available as a standalone command line executable and as build steps for VSTS-TFS and Jenkins.
From the root folder of the project you want to analyze, execute the following commands:
- Follow the link provided at the end of the analysis to browse your project's quality in the SonarQube UI.
- Project build is required between the
/t:Rebuildis used above as an example.
- Sensitive properties such as "
sonar.login" and "
sonar.password" are not persisted on disk for security reasons. If you wish to pass them as command line arguments, you will have to so for both the "
begin" and "
- If you are not already using MSBuild 14.0+, please refer to the Compatibility with Visual Studio and MSBuild notes.
Analysis of Web Site Solutions is not supported, however analysis of Web Application Solutions is supported.
The End Step executable was not found
If you need to run multiple analyses in rapid succession, pass
msbuild. Otherwise you may see the following error when the DLLs required by a new analysis are still locked by a previous analysis: