C#分析失败没有.pdb文件 [英] C# analysis fails without .pdb files

查看:697
本文介绍了C#分析失败没有.pdb文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试用SonarQube 4.2新的C#插件V3.0。
根据插件文档,我需要.pdb文件来运行分析,其中包括FxCop的规则,事实上,如果说.pdb文件中不存在输出文件夹执行声纳亚军时,我得到一个失败的消息; FxCop的退出代码为1536

I'm trying out the new C# plugin v3.0 with SonarQube 4.2. According to plugin documentation, I need .pdb files to run analysis which includes FxCop rules, and indeed I get a failure message when executing sonar-runner if said .pdb files are not present in the output folder; FxCop exits with code 1536.

的事情是,分析似乎需要.pdb文件的所有binnaries,输出文件夹包含除了我自己的几个依赖编译的代码。这些都是的NuGet包和我找不到符号文件为他们所有。

The thing is, the analysis seems to require .pdb files for ALL the binnaries, and the output folder contains several dependencies in addition to my own compiled code. These are NuGet packages and I cannot find symbol files for all of them.

那么,有没有什么办法可以有分析跳过文件,而无需调试符号?
经常SonarQube文件排除列表似乎适用于源代码只有文件(例如*了.Designer.cs),而没有binnaries。

So, is there any way I can have the analysis to skip the files without debugging symbols? The regular SonarQube file exclusion lists seem to apply to source code files only (e.g. *.designer.cs) and not for binnaries.

推荐答案

这是对SonarQube C#插件方的错误。我创建了以下机票修复: https://jira.codehaus.org/browse/SONARFXCOP -29

This is a bug on the SonarQube C# plugin side. I have created the following ticket to fix it: https://jira.codehaus.org/browse/SONARFXCOP-29

请注意,这是不相关的的* .pdb文件的存在,但只是在引用的程序集的存在下

Note that this is not related to the presence of *.pdb files, but only on the presence of the referenced assemblies.

这篇关于C#分析失败没有.pdb文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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