找不到ProjectInfo.xml文件

时间:2016-03-17 13:05:35

标签: visual-studio sonarqube tfs2013 sonarqube-5.0

我使用visual studio 2015tfs来构建项目, 我开始构建但遇到了下面描述的错误,

2016-03-17T09:38:15.2135195Z ##[error]No ProjectInfo.xml files were found. Possible causes:
2016-03-17T09:38:15.2135195Z ##[error]1. The project has not been built - the end step was called right after the begin step, without a build step in between
2016-03-17T09:38:15.2135195Z ##[error]2. An unsupported version of MSBuild has been used to build the project. Currently MSBuild 12.0 upwards are supported
2016-03-17T09:38:15.2135195Z ##[error]3. The build step has been launched from a different working folder
2016-03-17T09:38:15.2135195Z Generation of the sonar-properties file failed. Unable to complete SonarQube analysis.
2016-03-17T09:38:15.2135195Z 15:08:15.15  Creating a summary markdown file...
2016-03-17T09:38:15.2135195Z ##[error]Post-processing failed. Exit code: 1
2016-03-17T09:38:15.2135195Z ##[error]Unexpected exit code received from batch file: 1

任何人都能帮助我吗?

1 个答案:

答案 0 :(得分:0)

假设您正在使用TFS2015 vNext版本,并且您正尝试在下面添加构建任务以执行SonarQube分析:

·用于MSBuild的SonarQube - 开始分析

·用于MSBuild的SonarQube - 结束分析

从错误日志中,您需要确保应使用“结束分析”任务来创建在“ Visual Studio Build ”任务步骤之后执行的步骤。查看博客Build Tasks for SonarQube Analysis以获取有关如何使用SonarQube分析任务的更多信息。