分析失败并出现错误“没有对此项目执行 FxCop 分析,而它包含 cs 文件" [英] Analysis failing with error "No FxCop analysis has been performed on this project, whereas it contains cs files"

查看:39
本文介绍了分析失败并出现错误“没有对此项目执行 FxCop 分析,而它包含 cs 文件"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

升级到 SonarQube 6.7 LTS 后,我们的许多项目在完成 SonarQube 分析"期间开始失败.出现以下错误的任务:

After upgrading to SonarQube 6.7 LTS, many of our projects started failing during "complete SonarQube analysis" task with below error:

这些项目已启用代码分析并产生正确的 fxcop 结果.

These projects have codeanalysis enabled and produce proper fxcop results.

SonarQube 版本:6.7 LTSSonarC# 插件版本:6.6SonarQube MSBuild Runner:4.0

SonarQube version: 6.7 LTS SonarC# plugin version: 6.6 SonarQube MSBuild Runner: 4.0

如果这已知或任何方法可以找到问题的实际原因,有人可以告诉我吗?

Can someone let me know if this is known or any way to find the actual cause of the issue.

推荐答案

在 Scanner for MSBuild v4.0 中删除了对执行 FxCop 的支持 - 请参阅 SONARMSBRU-338 了解更多信息.

Support for executing FxCop was dropped in v4.0 of the Scanner for MSBuild - see SONARMSBRU-338 for more information.

但是,此更改不应导致使用最新版本的 sonar-fxcop 插件进行分析失败.检查您已安装的 sonar-fxcop 的版本.我可以使用插件的 v1.0 重现错误,但不能使用 v1.1 或 v1.2.

However, this change should not cause the analysis to fail with the latest version of the sonar-fxcop plugin. Check the version of the sonar-fxcop that you have installed. I can reproduce the error using v1.0 of the plugin, but not with v1.1 or v1.2.

这篇关于分析失败并出现错误“没有对此项目执行 FxCop 分析,而它包含 cs 文件"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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