- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
我正在使用 SandcaSTLe 帮助文件生成器将我的 C# XML-DOC 文件输出为网站格式。我如何从命令行完成同样的事情,以便在构建实际项目时将其添加为 Visual Studio 中的构建事件?
最终目标是在我构建 Visual Studio 项目时构建网站帮助文件内容。
最佳答案
正如 Scott Wylie 指出的那样,您需要在 Visual Studio 项目属性的生成后事件命令行中指定它。但是,我建议使用 Sandcastle Help File Builder (SHFB) 而不是直接使用 SandcaSTLe。它使命令行调用简短明了,如下所示,但请注意,首先您必须使用 SHFB GUI 配置 SHFB 项目,这会创建一个后缀为“.shfbproj”的 msbuild 兼容构建文件:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe /p:Configuration=Release myProject.shfbproj
However, note that I take the opposite approach from what you are doing: instead of using Visual Studio to interactively launch a build and ancillary actions, I use ant (nant) to launch a build of everything, which includes my Visual Studio solutions and subsequent SHFB action. So this is really the command-line call I make to build the documentation with Sandcastle:
<exec executable="${msbuild}" dir="${csharpdoc}" output="${csharpdoc.log}">
<arg value="/p:Configuration=Release"/>
<arg value="myProject.shfbproj"/>
</exec>
我的偏好是整个构建应该可以从命令行启动,因此不需要交互(例如启动 Visual Studio 等)。这提供了灵 active ,既可以作为计划的重复任务运行,也可以从 shell 按需运行。
关于c# - 构建 Visual Studio 项目时构建 SandcaSTLe 文档,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7882746/
我们将 SandcaSTLe 用于概念文档,并且我们希望以非 CHM 或 HTML 形式(即打印)向客户提供文档。它可以是 Word 或 PDF,可以简单地附加到电子邮件中。用例通常涉及想要发送主题的
当我使用 SandcaSTLe Helpfile Builder 创建 chm 时,如何使 xmldoc 块中的列表呈现为有序列表? 以下不起作用: /// /// Built in sup
我正在将一些概念性文档写入我们在SandcaSTLe中生产的其他技术文档中。 那里没有很多好的示例/链接,但是我开始理解MAML了。如果有任何优秀的资源可以帮助您了解/理解这一点,我将不胜感激。 我希
我向 SandcaSTLe 项目添加了一个代码段。 但是,代码片段未显示在生成的帮助文件中吗? 如何指定要添加的内容? 最佳答案 下载XML文档注释指南: http://www.dynicity.co
DITA 或 XSL 新手。我面临着为 API 文档构建文档的挑战。目前,我能够在 C# 程序集和 XML 上使用 SandcaSTLe 生成 HTML 和 CHM 帮助。我需要在 DITA 中生成它
我正在使用 SandcaSTLe 帮助文件生成器,并希望在“概念内容”中包含彩色 HTML 代码片段。这可能吗?如果可能,怎么办? 我已经尝试过 、 和 。 目前最好的结果是对示例 HTML 进行 H
我一直在使用 SandcaSTLe 和 SandcaSTLe 帮助文件生成器,默认情况下它提供三种演示样式:花 , 原型(prototype) 和 vs2005 . 虽然vs2005的风格看起来还可以
好吧,标题问了这一切。 我有SandcaSTLe帮助文件生成器GUI。我可以生成帮助文件,但是我想知道,除了重新编译整个帮助文件之外,是否还有一种更快的查看结果的方法。 我之所以询问SandcaSTL
任何使用sandcasle..i的人都找不到逐步使用它并创建msbuild项目设置的步骤,该设置将生成友好的帮助文件。 我从codeplex安装了它,并安装了文件生成器,但是他们没有说清楚如何使用它。
我正在尝试创建一个(不需要)不包含任何反射(reflect)的代码部分的帮助系统。使用最新的SandcaSTLe帮助文件生成器,是否可以仅包含MAML XML文件,因此需要更改什么设置,因为当前我可以
我想要生成文档的日期,并将版本号附加到所有SandcaSTLe构建的页脚中。 我使用SHFB gui创建项目文件,然后使用TeamCity自动进行构建。有没有一种方法可以将构建日期和TeamCity构
首先,SHFB岩石:-) 我使用独立帮助文件生成器和工具来呈现基于Web的“帮助站点”。 但是,指定的项目摘要似乎被忽略/忽略,并且在结果输出网站文件中从未找到。 谁能告诉我如何在SHFB呈现的网站中
我今天启动了SandcaSTLe帮助文件生成器,以为我的解决方案生成文档,其中包含大约十二个项目。由于我只想为Release版本(不包括我的所有测试项目)生成文档并在之后运行SandcaSTLe,因此
我的图书馆使用代码契约。 有没有办法将这些契约(Contract)合并到由 SandcaSTLe 生成的文档中? 最佳答案 编辑:原来这个方法已经过时了;只需安装 Sandcastle Styles
我真的很想将图像添加到 SandcaSTLe 生成的程序帮助文件中。 我已尽可能密切关注 SandcaSTLe 常见问题解答,但我仍然无法显示图像,尽管我已经设法显示了一个小图像占位符: . 我相当确
这个问题不太可能对任何 future 的访客有帮助;它只与一个小的地理区域、一个特定的时间点或一个非常狭窄的情况相关,通常不适用于互联网的全局受众。如需帮助使这个问题更广泛适用,visit the h
我们正在使用SandcaSTLe在构建过程中生成源代码文档。这对于创建类,方法,属性等的API级别文档非常有用。此外,SandcaSTLe允许您将摘要添加到 namespace 以及“概念内容”中。我
我在使用 SandcaSTLe 内的代码示例时遇到了麻烦。我希望能够在一个选项卡控件中包含四个示例,但是我不确定如何执行此操作。 /// /// AnimatedExpander inherits
好吧,我有一个带有几个类的程序集和一个带有几个方法的接口(interface) 现在,当我在此程序集上运行 SandCaSTLe 时,它会生成应有的文档,但是如果我转到接口(interface)上
是否可以向SandcaSTLe添加MathJax功能 文档工具? 如果基本上是,应该在何处添加对Mathjax的引用? 另外,还有其他可能性可以包含数学公式吗? 标记到SandcaSTLe文档中? 最
我是一名优秀的程序员,十分优秀!