This example demonstrates how to analyze a .NET Solution with the SonarQube Scanner for MSBuild.
- SonarQube 5.6+ LTS
- SonarQube Scanner for MSBuild 2.2.0+
- SonarSource C# Plugin 5.5.1+
- Compatible .NET Build Environment
-
Run SonarQube Scanner for MSBuild begin phase:
SonarQube.Scanner.MSBuild.exe begin /k:"org.sonarqube:sonarqube-scanner-msbuild" /n:"Example of SonarQube Scanner for MSBuild Usage" /v:"1.0"
-
Build the project with MSBuild:
MSBuild.exe /t:Rebuild
-
Run SonarQube Scanner for MSBuild end phase:
SonarQube.Scanner.MSBuild.exe end