首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >没有找到ProjectInfo.xml文件。生成声纳属性文件失败

没有找到ProjectInfo.xml文件。生成声纳属性文件失败
EN

Stack Overflow用户
提问于 2015-11-13 20:38:10
回答 2查看 1.8K关注 0票数 1

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

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

代码语言:javascript
复制
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

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

谢谢

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2015-11-16 11:51:11

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

票数 1
EN

Stack Overflow用户

发布于 2015-11-16 16:28:16

我也有同样的问题,原来我没有安装MSBuild 12.0。一旦安装好,它就完美无缺地工作了:)

你可以在这里找到它,http://www.microsoft.com/en-us/download/details.aspx?id=40760

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/33701359

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档