How to ignore code with GeneratedCodeAttribute

Oct 2, 2008 at 8:43 PM
Is there an easy way to ignore code in classes with the "System.CodeDom.Compiler.GeneratedCodeAttribute" attribute specified on them?  I don't want the comments for generated code appearing in my CHM file.
Oct 2, 2008 at 11:26 PM

I don't think Sandastle provides a feature that filters APIs by their attributes.

You could probably filter topics by their attributes in DocProject if you write a custom dynamic filter, but I haven't tried that myself.  I'll try to create one and post it here if you're interested.

I'm not sure if it's possible in Sandcastle Help File Builder but that's probably worth looking into as well.

- Dave
Oct 3, 2008 at 2:46 AM
There isn't a way in the current release of SHFB but I've got a plug-in that someone else wrote that I'll be adding that may allow it.  It allows removing items using XPath queries.  I've sent it to a couple of people but haven't had a chance to do much with it yet myself.  I plan on adding it to the next release.  If you're using SHFB and would like to try it, e-mail me and I can send it to you.