找不到ProjectInfo.xml文件。 [英] No ProjectInfo.xml files were found .TFS build with sonar end task

查看:132
本文介绍了找不到ProjectInfo.xml文件。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图配置我的Visual Studio项目,以使用TFS 2015 build(vnext)
将一些分析数据发送到SonarQube服务器。在Sonar最终任务中遇到此错误。
## [错误]未找到ProjectInfo.xml文件。可能的原因:
## [错误] 1。该项目尚未生成-结束步骤在开始步骤之后立即被调用,在
之间没有生成步骤。使用了不受支持的MSBuild版本来生成该项目。当前支持MSBuild 12.0以上



我们在服务器中使用MSBuild 14.0。

解决方案


用于MSBuild的SonarQube扫描仪需要使用MSBuild 14.0构建您的项目
。我们建议在
分析机上安装Visual Studio 2015,以便从Visual Studio生态系统提供的
集成和功能中受益(VSTest,MSTest单元测试,
等)。


建议您也将VS2015安装在构建服务器上,并且由于您使用的是MSbuild 14.0,因此请仔细检查是否使用的旧任务已过 (用于MSbuild 12.0)。


下载并使用l测试版本的用于MSBuild的SonarQube扫描仪,然后尝试再次。最新的文档可从使用SonarQube扩展进行分析对于VSTS / TFS ,您还可以阅读本教程。


I am trying to configure my visual studio project to send some analysis data to SonarQube server using TFS 2015 build (vnext) I get this error in the Sonar end task. ##[error]No ProjectInfo.xml files were found. Possible causes: ##[error]1. The project has not been built - the end step was called right after the begin step, without a build step in between An unsupported version of MSBuild has been used to build the project. Currently MSBuild 12.0 upwards are supported

We use MSBuild 14.0 in the server.

解决方案

The SonarQube Scanner for MSBuild requires your project to be built with MSBuild 14.0. We recommend installing Visual Studio 2015 on the analysis machine in order to benefit from the integration and features provided with the Visual Studio ecosystem (VSTest, MSTest unit tests, etc.).

Suggest you to also install VS2015 on your build server, and since you are using MSbuild 14.0, double check if you are using the old task with deprecated in front which used for MSbuild 12.0. SonarQube Scanner for MSBuild released with static analysis which could executed during the build on MSbuild 14.0.

The support of MSBuild 12 by the SonarQube Scanner for MSBuild is deprecated and will be removed in a future release.

Source: Compatibility with Visual Studio and MSBuild

Please download and use the latest version of the SonarQube Scanner for MSBuild in marketplace and try again. The recent documentation is available from Analyzing with SonarQube Extension for VSTS/TFS, you could also take a look at this tutorial.

这篇关于找不到ProjectInfo.xml文件。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆