【问题标题】:MsBuild Runner error - sonar.cs.fxcop assembly must be setMsBuild Runner 错误 - 必须设置 sonar.cs.fxcop 程序集
【发布时间】:2015-08-18 13:16:18
【问题描述】:

更新 - 使用 MSbuild Runner,我们看到以下错误

我们在 sonar.project.properties 中设置了属性 sonar.cs.fxcop.fxCopCmdPath=C:\Program Files (x86)\Microsoft Visual Studio 12.0\Team Tools\Static Analysis Tools\FxCop\FxCopCmd.exe

C# 插件 - 4.1 MsBuild 亚军 - 1.0 SonarQube - 5.1.1

【问题讨论】:

  • 您能否提供更多信息,例如您正在使用的 SonarQube 和插件版本?此外,您似乎正在使用 sonar-runner,而 MSBuild SonarQube Runner 现在是分析 .NET 项目的推荐方法。 sonar.donet.visualstudio.testProjectPattern 与所有其他 sonar.dotnet.* 属性一样被弃用。 sonar.opencover.installDirectory 不再受支持。
  • 版本 - 5.1.1,C# - 4.0,visualstudio - 1.2。将尝试使用 MSBuild.. 删除了已弃用的 dotnet 配置.. 我有一个来自 opencover 和 VS2013 的有效覆盖 xml.. 也尝试了 opencover 配置.. 我还应该检查什么?

标签: c# sonarqube sonarqube-msbuild-runner


【解决方案1】:

您将在官方文档中找到有关如何使用 MSBuild SonarQube Runner 运行 OpenCover(以及所有其他受支持的覆盖工具)的完整端到端示例:http://docs.sonarqube.org/display/PLUG/C%23+Code+Coverage+Results+Import

【讨论】:

    猜你喜欢
    • 2010-12-22
    • 2018-10-17
    • 2015-09-22
    • 2012-06-24
    • 2018-12-14
    • 1970-01-01
    • 1970-01-01
    • 2018-12-14
    • 1970-01-01
    相关资源
    最近更新 更多