【发布时间】:2011-05-26 15:52:48
【问题描述】:
我得到了几十个 CA1703:Microsoft.Naming error
resource Resources.resx', referenced by name 'code', correct the spelling of
'addfile' in string value '#set ...'
这很荒谬,因为 StyleCop 对代码运行拼写检查以产生拼写错误。
如何抑制这个 StyleCop 错误?
我尝试使用此提示中的 SuppressMessage,但我再次收到错误 - Error 70 The type or namespace name 'SuppressMessageAttribute' could not be found (are you missing a using directive or an assembly reference?)
[SuppressMessage("Microsoft.StyleCop.CSharp.DocumentationRules", "CA1703:Microsoft.Naming", Justification = "This is tcl script, spelling check is meaningless")]
public static void Generate(string clientDirectory, string topLevelTestbench, string doFileName)
【问题讨论】:
标签: .net visual-studio visual-studio-2010 stylecop