DesignerCategory attribute

Hi all,

When you apply the [System.ComponentModel.DesignerCategory("Code")] attribute
to a class the VS IDE will treat that file as code. If the reference is shortened
to [DesignerCategory("Code")] the IDE doen's seem to apply the attribute
anymore. We've noticed this behaviour in both VS 2003 and 2005 . It can be
a real pain since "shorten references" in the Reformat Code feature helps
a lot with code cleanup and noise reduction. Any change of locking down this
attribute so it doesn't get shortened?


1 comment
Comment actions Permalink

I too have this problem in vs2005

Is there a work around?


Please sign in to leave a comment.