c# - 如何格式化 Visual Studio XML 文档以在 Web 上显示

标签 c# xml visual-studio visual-studio-2010 comments

我正在使用 Visual Studio 2010,并且开始做一个好 child ,并在编写代码时通过 XML 注释记录我的所有代码。我有一个文档齐全的项目,我什至想出了如何让 Visual Studio 在进行构建时吐出一个完整的 XML 文档。我的问题是,在 Web 上格式化/显示此文档的最佳方式是什么,以便它以像 MSDN 这样友好且可用的格式显示?有没有一种工具可以轻松做到这一点?

提前致谢!

最佳答案

查看 Sandcastle .

Sandcastle produces accurate, MSDN style, comprehensive documentation by reflecting over the source assemblies and optionally integrating XML Documentation Comments.

Wikipedia有更多信息和指向与沙堡集成的其他项目的链接。


另一个选项(似乎更容易使用)是 docu :

A documentation generator for .Net that isn't complicated, awkward, or difficult to use. Given an assembly and the XML that's generated by Visual Studio, docu can produce an entire website of documentation with a single command.


第三个选项是 NDoc :

NDoc generates class library documentation from .NET assemblies and the XML documentation files generated by the C# compiler (or with an add-on tool for VB.NET).

NDoc uses pluggable documenters to generate documentation in several different formats, including the MSDN-style HTML Help format (.chm), the Visual Studio .NET Help format (HTML Help 2), and MSDN-online style web pages.

关于c# - 如何格式化 Visual Studio XML 文档以在 Web 上显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5199002/

相关文章:

android - Xamarin Android 菜单图标不显示

java - 基于文件夹 "values"的 Android 本地化

visual-studio - 您如何管理由多个开发人员更改的源代码控制中的 .vcproj 文件?

visual-studio - 在 64 位 VC 应用程序中强制本地变量到堆栈的任何方法

c# - 替换字符串中的一个字符而不是两个字符

c# - BigCommerce OAUTH 不发送原始临时代码

c# - 为什么 WCF 服务在持久化新实体之前执行所有查询?

xml - Chrome 39 XML/XSLT 呈现空白页面

c# - 32 位 .NET 应用程序和 64 位 .NET 应用程序之间有区别吗?

visual-studio - HTML 键盘快捷键中的匹配标签