我在网站项目中使用Visual Studio 2008 Team Suite并希望使用内置的代码分析功能(FxCop)。当检查的命名规则,我得到这个错误:__DataBind__control通过ASP.NET中的FxCop代码分析发现
CA1709: Microsoft.Naming: Korrigieren Sie die Schreibweise von "control" im Membernamen "'module_readPost_ascx.__DataBinding__control15(Object, EventArgs)'"
meaning: I have to check the spelling of the word "control" in member name "'module_readPost_ascx.__DataBinding__control15(Object, EventArgs)'"
不幸的是没有在整个项目中没有叫__DataBinding__control15方法(对象,EventArgs的)。我想这段代码是在编译时生成的,所以FxCop可以在检查编译后的程序集时找到它。
在项目中发现约150次,所以我想告诉FxCop忽略此代码或将我的代码更改为不导致此“异常”。
“不检查规则Microsoft.Naming CA1709”是不是一种选择;)
非常感谢您的反馈意见。