MSBuild SonarQube runner : "Failed to locate the code coverage command line tool" still with version 1. 0.1

标签 msbuild visual-studio-2015 sonarqube sonarqube-msbuild-runner

我正在尝试使用 MSBuild SonarQube Runner 让我的 TFS 构建运行 Sonar 分析。

我已根据此 manual 配置了该工具以与我们的 Sonar 服务器一起使用.实际上,我可以通过本地计算机上的控制台手动构建来开始分析。此外,我在构建服务器上安装了该工具,当我通过 Visual Studio 运行它时,我将收到错误消息“无法找到代码覆盖命令行工具”

我已经发现需要 CodeCoverage.exe,但只有在服务器上安装企业版 Visual Studio 时才会提供。我还读到,在 1.0.1 版中,这个问题应该得到修复(参见 here 并且在更新日志中 this 也被提及为已修复)。

我将旧的 MSBuild SonarQube Runner 替换为 1.0.1 版,但在 Visual Studio 中的 TFS 上构建并添加命令行以运行 MSBuild SonarQube Runner v1.0.1,我仍然收到错误“无法找到代码覆盖命令行工具”

我还在构建机器上安装了 Visual Studio 2015 Professional。

如何在不需要提供 CodeCoverage.exe 的 Visual Studio 企业版的情况下解决此问题?

最佳答案

代码覆盖率仍然需要 2015 版的 Visual Studio Enterprise(请参阅 this page)。

bug您提到修复了 1.0 版中的一个问题,这意味着如果找不到代码覆盖工具,分析将失败。如果找不到代码覆盖工具,分析将不再失败,但如果您想使用 Microsoft 代码覆盖工具,它不会改变必须安装 VS Enterprise 的要求。

关于MSBuild SonarQube runner : "Failed to locate the code coverage command line tool" still with version 1. 0.1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32602747/

相关文章:

msbuild - 如何通过命令行构建Windows 10 appxupload(准备提交存储)包

java - SonarQube 5.5 不选择 Java 应用程序中的 javascript 文件

mockito - PowerMockito禁用 Sonar 分公司的覆盖范围

java - Sonarqube、PMD、findbugs 和 checkstyle

msbuild “Unable to remove directory”

c++ - 错误 MSB6006 : "CL.exe" exited with code -1073741805

visual-studio - 始终在Visual Studio 2017中运行生成后事件命令

c++ - VC++编译器升级2010->2015重新定义; 'constexpr' 说明符不匹配

xaml - 在 Themeresource 中为一个简单的 Windows 应用程序更改为深色

java - 为什么 Visual Studio 尝试使用错误的 JDK 版本?