This example demonstrates how to analyze a .NET Solution with the SonarScanner for MSBuild. Please review cateogrization of product projects versus test projects to ensure your CSharp project is scanned correctly.
- SonarQube 8.9 LTS or Latest
- SonarScanner for .NET 5.8.0+
- Compatible .NET Build Environment
- Run SonarScanner for MSBuild begin phase:
SonarScanner.MSBuild.exe begin /k:"org.sonarqube:sonarqube-scanner-msbuild" /n:"Example of SonarScanner for MSBuild Usage" /v:"1.0"
- Build the project with MSBuild:
MSBuild.exe /t:Rebuild
- Run SonarScanner for MSBuild end phase:
SonarScanner.MSBuild.exe end