用于MSBuild的SonarQube - 结束分析:SonarQube扫描程序执行期间出错文件

时间:2017-02-19 01:04:14

标签: msbuild sonarqube sonarqube-scan

##[error]15:41:48.530 ERROR: Error during SonarQube Scanner execution
##[error]java.lang.IllegalStateException: Line 33 is out of range in the file Controllers/BaseAccessRequestController.cs (lines: 30)

我正在使用Sonar 5.6.5版本和MSBuild 14. Sonar作为Windows服务运行。如果我排除此控制器,则其他随机控制器会出现相同的错误。如果我排除所有控制器但保留一个或两个单元测试,那么错误消失但覆盖率显示为0,0%。

1 个答案:

答案 0 :(得分:0)

我可以在从TFS Build服务器上删除带有Updates 2015的Microsoft Build Tools 2015和Visual Studio Enterprise 2015并再次重新安装后解决此问题。