如何使用 sandcastle 在输出中标记过时的类/方法
我正在使用 Sandcastle 构建 API 文档。该代码有多个已标记为已弃用的类和方法。现在我希望在 API 文档输出中清楚地标记这些方法(划掉或其他标记)。然而,Sandcastle 输出根本不标记过时的方法/类。
我的问题是。我需要做什么才能让 Sandcastle 标记过时的方法/类。
感谢您的任何建议/帮助。
I'm building an API documentation with Sandcastle. The code has multiple classes and methods which are marked deprecated. Now I want that in the API-documentation output these methods are clearly marked (crossed-out or other marker). However the Sandcastle output doesn't mark obsolete methods/classes at all.
My question is. What do I need to do to have the obsolete methods/classes marked by Sandcastle.
Thanks for any advice/help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,我发现了这个问题。问题是我现有的 API 和属性过滤器的混合。
因此,我将系统命名空间添加到我的 API 过滤器中,以便它包含过时属性:
并将其也添加到属性过滤器列表中:
我的属性过滤器中有“ObsoleteAttribute”,但 API 中没有-筛选。
该线程也很有帮助: http://docproject.codeplex.com/discussions/74716?ProjectName =docproject
Well I found the issue. The issue is a mix of the API and Attribute filters I had in place.
So I added the System-namespace to my API filters, so that it includes the Obsolete-Attribute:
And added it also to the list of Attribute-Filters:
I had the 'ObsoleteAttribute' in my attribute-filter, but not in the API-filter.
This thread was also helpful: http://docproject.codeplex.com/discussions/74716?ProjectName=docproject