Skip to content

Latest commit

 

History

History
 
 

SonarQube-Scanner MSBuild CSharp Project

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.

Prerequisites

Usage

  • 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