有条件地排除名称空间,类型成员 [英] conditionally exclude namespaces, types members

查看:132
本文介绍了有条件地排除名称空间,类型成员的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们需要立即自动构建(每晚构建)我们的帮助文件的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


这篇关于有条件地排除名称空间,类型成员的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆