必须设置属性“sonar.cs.fxcop.assembly”并且必须已构建项目 [英] The property “sonar.cs.fxcop.assembly” must be set and the project must have been built

查看:159
本文介绍了必须设置属性“sonar.cs.fxcop.assembly”并且必须已构建项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们使用 SonarQube  5  0 和MSBuild Sonar Runner  1  01  C#插件 4  2 ,jdk  1  8 

在启用FxCop规则的情况下运行分析时,我们引发:属性 < span class =code-string> sonar.cs.fxcop.assembly必须是 set ,并且必须构建项目才能执行FxCop规则。 http:可以通过Analysis Bootstrapper Visual Studio Projects插件自动 set ,参见:http: // docs.codehaus.org/x/TAA1Dg。如果您想跳过未构建项目的分析,请设置属性sonar.visualstudio.skipIfNotBuilt。

我安装了fxcop 10 0 。我们在
windows服务器 > 2008 R2,我们不是使用任何数据库,我主要担心的是 如果我停用所有fxcop规则然后我的声纳工作。但如果我激活然后我得到上述错误,请告诉我在安装FXcop后我应该做什么?我的意思是告诉我需要做什么额外的配置如果我想让我的声纳与fxcop一起运行。请回复你的建议

解决方案

需要安装MSBuild 14+。

查看使用SonarQube扫描仪进行MSBuild分析的先决条件 - SonarQube文档 - SonarQube [ ^ ]。

We are using SonarQube 5.0 and MSBuild Sonar Runner 1.01 C# plugin 4.2, jdk 1.8,

While running the analysis with FxCop Rules enabled we Caused by: The property "sonar.cs.fxcop.assembly" must be set and the project must have been built to execute FxCop rules. This property can be automatically set by the Analysis Bootstrapper for Visual Studio Projects plugin, see: http://docs.codehaus.org/x/TAA1Dg. If you wish to skip the analysis of not built projects, set the property "sonar.visualstudio.skipIfNotBuilt".

I have installed fxcop 10.0.we are Using in windows server 2008 R2, we are not using any database,My major concern is if I deactivate all my fxcop rules then my sonar works.But if I activate then I get the above error, so tell me what should I do after installing FXcop? I mean to tell what are the extra configuration need to be done If I want my sonar to run with fxcop. Kindly revert me back with your suggestion

解决方案

MSBuild 14+ needs to be installed.
Check out the prerequisites at Analyzing with SonarQube Scanner for MSBuild - SonarQube Documentation - SonarQube[^].


这篇关于必须设置属性“sonar.cs.fxcop.assembly”并且必须已构建项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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