我正在尝试将我的项目配置为向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现在确定我做错了什么。你能帮个忙吗?如果我需要提供更多的信息,请告诉我。
谢谢
发布于 2015-11-16 11:51:11
确保您正在运行MSBuild version 12或14来构建和分析您的项目,并确保您运行的是SonarQube Scanner的begin和end命令以及来自同一个文件夹的msbuild命令。
发布于 2015-11-16 16:28:16
我也有同样的问题,原来我没有安装MSBuild 12.0。一旦安装好,它就完美无缺地工作了:)
你可以在这里找到它,http://www.microsoft.com/en-us/download/details.aspx?id=40760
https://stackoverflow.com/questions/33701359
复制相似问题