【发布时间】:2017-05-19 19:53:43
【问题描述】:
我正在 teamcity 中运行 C# 构建,其中包括使用 Sonar 分析我的代码的步骤。
但是,我总是在声纳构建日志中收到警告。
INFO - SonarAnalyzer.Scanner needs to be executed: true
***********************************************************************************
WARN - * Use MSBuild 14 to get the best analysis results *
WARN - * The use of MSBuild 12 or the sonar-scanner to analyze C# projects is DEPRECATED *
WARN - ***********************************************************************************
现在我知道该项目没有使用 MSBuild 12,sn-p 中的第一行表明问题是因为使用了sonar-scanner。
如何避免使用声纳扫描仪,而使用 MSBuild 14?
以下是我的软件版本:
Teamcity version 10.0.4
SonarQube version 6.2
Sonar C# plugin version 5.5.2.537
sonar-plugin for teamcity compiled from source as of 4th Jan 2017
TeamCity Sonar 插件是否仅使用声纳扫描仪,还是我可以更改的其他东西?
【问题讨论】:
标签: c# msbuild sonarqube teamcity