有条件地排除名称空间,类型成员

问题描述:

我们需要立即自动构建(每晚构建)我们的帮助文件的severel版本,在每个版本中必须排除某些名称空间,类型和成员。沙堡如何处理?


http://bitbonk.spaces.live.com

We need to automatically build (nightly builds) severel versions of our help files at once where in each version certain namespaces, types and members must be excluded. How can sandcastle handle that?


http://bitbonk.spaces.live.com

您可以使用MRefBuilder的API过滤器功能来排除名称空间,类型和成员。如果使用 Sandcastle帮助文件生成器,则可以使用 ApiFilter 项目属性进行定义。控制台模式构建器也支持通过命令行定义过滤器。 DocProject 也支持API过滤器,但我不知道具体如何在那里完成,或者是否可以从命令中覆盖它线。如果将Sandcastle与您自己的构建脚本一起使用,请参阅此博客帖子有关如何在MRefBuilder.config中定义API过滤器的信息。

Eric
You can use the API filter feature of MRefBuilder to exclude namespaces, types, and members.  If using the Sandcastle Help File Builder, you can define it using the ApiFilter project property.  The console mode builder supports defining filters via the command line too.  DocProject also supports the API filter but I don't know the specific on how it's done there or if it can be overridden from the command line.  If using Sandcastle with your own build scripts, see this blog post for information on how to define the API filter in MRefBuilder.config.

Eric