C# 如何使用sandcastle在输出中标记过时的类/方法

C# 如何使用sandcastle在输出中标记过时的类/方法,c#,documentation,documentation-generation,sandcastle,C#,Documentation,Documentation Generation,Sandcastle,我正在用Sandcastle构建一个API文档。该代码有多个标记为已弃用的类和方法。现在我希望在API文档输出中清楚地标记这些方法(划掉或其他标记)。但是,Sandcastle输出根本没有标记过时的方法/类 我的问题是。我需要做什么才能用Sandcastle标记过时的方法/类 谢谢你的建议/帮助。我发现了这个问题。问题是我使用的API和属性过滤器的混合 因此,我将系统名称空间添加到API过滤器中,以便它包含过时属性: <apiFilter> <namespace name=

我正在用Sandcastle构建一个API文档。该代码有多个标记为已弃用的类和方法。现在我希望在API文档输出中清楚地标记这些方法(划掉或其他标记)。但是,Sandcastle输出根本没有标记过时的方法/类

我的问题是。我需要做什么才能用Sandcastle标记过时的方法/类


谢谢你的建议/帮助。

我发现了这个问题。问题是我使用的API和属性过滤器的混合

因此,我将系统名称空间添加到API过滤器中,以便它包含过时属性:

<apiFilter>
  <namespace name="System" expose="true">
    <type name="ObsoleteAttribute" expose="true" />
    <type name="SerializableAttribute" expose="false" />
  </namespace>
  <!-- rest of the stuff -->
</apiFilter>

<attributeFilter expose="true">
  <namespace name="System" expose="false">
    <type name="ObsoleteAttribute" expose="true" />
  </namespace>
  <!-- rest of the stuff -->
</attributeFilter>