Visual Studio代码分析问题 [英] Problem with Visual Studio Code Analysis

查看:91
本文介绍了Visual Studio代码分析问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的女士们,先生们,

Dear ladies and gentlemen,

我们在C#项目中使用第三方DLL。当我们尝试执行代码分析时,我们会收到下一个错误:

we are using 3rd party DLL in our C# project. When we try to perform Code Analysis then we receive the next errors:

如果我们关闭此项目的代码分析,则没有错误。

If we turn off Code Analysis for this project then there is no errors.

直到现在我们才发现我们应该移动第三方的所有代码将库分成单独的类(包装类)进入单独的项目并关闭那里的Code Analysis。第三方DLL的开发人员说,代码分析试图检查每个DLL和
他们还提供将代码移动到没有代码分析的另一个项目。

Till now we have found only that we should move all code of third party library into separate class (wrapper class) into separate project and turn off there Code Analysis. The developer of 3rd party DLL says that Code Analysis tries to check each DLL and they also offer to move code into another project without Code Analysis.

有更好的解决方案吗?我们希望能够配置代码分析并配置不应检查哪些DLL。但到目前为止,我们什么也没找到。

Is there a better solution? We expect that it should be possible to configure Code Analysis and configure which DLLs should not be checked. But till now we have found nothing.

祝福

Dmitry Orlov

Dmitry Orlov

DHL Deutsche Post

DHL Deutsche Post

推荐答案

您好Dmitry,

Hi Dmitry,

欢迎来到MSDN论坛。

Welcome to MSDN forum.

不确定您是否使用FxCop,之前已报告过几个类似的问题,解决方案是更改 FxCopCmd.exe.config的
AssemblyReferenceResolveMode

StrongName StrongNameIgnoreVersion

Not sure if you are using FxCop, several similar issues have been reported before, and the solution is to change the AssemblyReferenceResolveMode of the FxCopCmd.exe.config from StrongName to StrongNameIgnoreVersion

参考主题:

< a href ="https://stackoverflow.com/questions/22535730/configure-fxcopcmd-assembly-compare-mode-in-sonarqube#"> https://stackoverflow.com/questions/22535730/configure-fxcopcmd-assembly- compare-mode-in-sonarqube#

https://stackoverflow.com/questions/26058751/visual-studio-2012-code-analysis-error-ca0058

 

问候,

Fletcher


这篇关于Visual Studio代码分析问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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