Is it possible to disable Resharper 4.5 naming suggestions in markup files such as aspx and ascx?
It gets annoying when every single server control is underlined and displays a message like “Name ‘ddlDefect’ does not match rule ‘Fields (not private). Suggested name is ‘Defect’.
<asp:DropDownList ID="ddlDefect" runat="server" />
I know that I can add additional rules, but that would affect all non private fields in my classes, and I’d rather not do that.
I don’t know of a way to turn this off, and I don’t think it would be wise to do so. The declaration you’ve posted actually declares a field named “
ddlDefect“. Why not treat it like any other field with the same name? Why treat it differently simply because you declared it using markup and not code?