【问题标题】:No ProjectInfo.xml files were found. Generation of the sonar-properties file failed未找到 ProjectInfo.xml 文件。声纳属性文件的生成失败
【发布时间】:2015-11-13 20:38:10
【问题描述】:

我正在尝试配置我的项目以将一些分析数据发送到 SonarQube 服务器。我运行MSBuild.SonarQube.Runner.exe begin 命令,然后运行msbuild。我的解决方案有 3 个项目库和 1 个单元测试项目。

begin 命令和 msbuild 运行没有任何错误,但 end 命令输出以下错误并且没有数据发布到 SonarQube 服务器。

C:\solutions> "C:\SonarQube Runner\MSBuild.SonarQube.Runner.exe" end
MSBuild SonarQube Runner Bootstrapper 1.0.2.0
Default properties file was found at C:\SonarQube Runner\SonarQube.Analysis.xml
Loading analysis properties from C:\SonarQube Runner\SonarQube.Analysis.xml
Post-processing started.
MSBuild SonarQube Runner Post-processor 1.0.2.0
No ProjectInfo.xml files were found. Possible causes: you specified an invalid build configuration or the custom MSBuild analysis targets were not imported. Generation of the sonar-properties file failed. Unable to complete SonarQube analysis.
13:58:45.786  Creating a summary markdown file...
Post-processing failed. Exit code: 1

现在确定我做错了什么。你能帮忙吗?如果我应该提供更多信息,请告诉我。

谢谢

【问题讨论】:

    标签: c# msbuild sonarqube


    【解决方案1】:

    确保您正在运行 MSBuild 版本 12 或 14 来构建和分析您的项目,并确保您正在运行 SonarQube Scanner for MSBuild 的 beginend 命令以及 @来自同一文件夹的 987654323@ 命令。

    【讨论】:

      【解决方案2】:

      我遇到了同样的问题,原来我没有安装 MSBuild 12.0。一旦安装它就可以完美运行:)

      您可以在这里获取它http://www.microsoft.com/en-us/download/details.aspx?id=40760

      【讨论】:

        猜你喜欢
        • 2014-03-22
        • 2017-08-06
        • 2018-03-02
        • 2016-03-08
        • 2019-07-19
        • 1970-01-01
        • 2012-08-02
        • 1970-01-01
        • 2015-08-28
        相关资源
        最近更新 更多