This example demonstrates how to analyze a .NET Solution with the SonarScanner for .NET. Please review cateogrization of product projects versus test projects to ensure your C# project is scanned correctly.
- Run SonarScanner for .NET/MSBuild begin phase:
SonarScanner.MSBuild.exe begin /k:"org.sonarqube:sonar-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