2017-07-03 35 views
1

我使用sonarQube 6.3(並將遷移到6.4)與聲納掃描儀3.0.0.702-windows掃描C#代碼。Scann Sonarqube中的幾個項目

我知道,要用sonarQube掃描一個項目,我們需要定義一個屬性文件,然後執行sonarscanner。儘管如此,當談到太多項目時,要做到這一點並不容易。

我想知道是否有用戶界面或更明顯的方式來做到這一點。

感謝

回答

3

對於您應該使用SonarQube Scanner for MSBuild C#。此掃描程序從您的解決方案文件中獲取大部分所需的信息。其餘值應在命令行中提供,如下所示:

SonarQube.Scanner.MSBuild.exe begin /k:"org.sonarqube:sonarqube-scanner-msbuild" /n:"Project Name" /v:"1.0" 
MSBuild.exe /t:Rebuild 
SonarQube.Scanner.MSBuild.exe end