Sandcastle 区分调试版本和发布版本吗?

发布于 2024-08-13 10:40:05 字数 332 浏览 6 评论 0原文

我今天启动了 Sandcastle Help File Builder 来为我的解决方案生成文档,其中包含大约十几个项目。由于我只想为发布构建(不包括我的所有测试项目)生成文档并在发布后运行 Sandcastle,因此我在窗口顶部选择了“发布”,就像在 VS 中一样。 Sandcastle 在我的 \bin\release 子文件夹中为每个项目适当地查找生成的 XML 文件。然而,当它找不到我的测试项目的 DLL 时,就会出错。它显然在解决方案文件中看到了这些项目,但没有意识到我在发布中没有它们的构建。我尝试在“API Filter”属性中取消选择它们,但这不会改变任何内容。

我怎样才能让 Sandcastle 忽略这些项目?

I fired up Sandcastle Help File Builder today to generate documentation for my solution, which has around a dozen projects in it. Since I only want to generate documentation for, and run Sandcastle after, a Release build (which excludes all my test projects), I selected "Release" at the top of the window, just like in VS. Sandcastle appropriately looks for the gen'd XML files in my \bin\release subfolders for each project. However, it errors out when it cannot find DLL's for my test projects. It apparently sees those projects in the solution file, but doesn't realize I don't have builds for them in Release. I tried de-selecting them in the "API Filter" property, but this doesn't change anything.

How can I get Sandcastle to ignore those projects?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

口干舌燥 2024-08-20 10:40:05

SHFB不错,我最近一直在用它。事实证明,有多种方法可以指定文档来源。一种方法是选择解决方案,就像您所做的那样。您还可以仅为您有兴趣记录的项目选择项目文件。您甚至可以选择生成的程序集作为源。

尝试将文档源从解决方案更改为仅您感兴趣的项目。它并不能完全回答您的问题,但它是一种解决方法,因为您很可能不需要记录您的测试项目。

SHFB is nice, I've been using it recently. It turns out that there are a number of ways you can specify documentation sources. One way is by selecting the solution, as you seem to have done. You can also choose the project files for just the projects you are interested in documenting. You can even choose the resulting assemblies as sources.

Try changing the docu source from the solution to just the projects you are interested in. It doesn't quite answer your question, but it is a workaround, since you fairly likely have no need to document your test projects.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文