从C#XML注释生成文档 [英] Generating Documentation from C# XML Comments

查看:151
本文介绍了从C#XML注释生成文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近开始了一个新项目,我第一次使用C#。我发现,虽然Visual Studio有助于创建C#的XML注释来记录您的类和方法,但是没有太多可以做的来生成MSDN或Javadoc样式文档。

I've recently started a new project and I'm using C# for the first time. I've found that while Visual Studio is helpful in creating C#'s XML comments to document your classes and methods, there's not much you can do to generate MSDN or Javadoc style documentation.

Google告诉我Visual Studio 2003包含一个用于生成此类文档的工具,但它不再包含在更高版本的IDE中。

Google tells me that Visual Studio 2003 included a tool to generate such documentation, but it is not longer included in later versions of the IDE.

如果我想使用我精心制作的(我向你保证!)XML标记,我的选择是什么?感谢您的答案,但Sandcastle似乎有点痛苦的配置和使用,所以我不断寻找。

What are my options if I wish to make use of my carefully crafted (I assure you!) XML markup?

推荐答案

我刚刚找到了另一种选择 - Doxygen

Thanks for the answers, but Sandcastle seems a bit painful to configure and use so I kept looking. I've just found another alternative - Doxygen.

Doxygen生成javadoc样式文档,尽管它看起来主要是用于在注释中从自定义标记生成文档。显然,Doxygen还支持C#XML注释,虽然我在他们的网站上找不到任何提到它!

Doxygen generates javadoc style documentation, although it looks like it's primarily intended to generate documentation from custom markup within your comments. Evidently, Doxygen also supports C# XML Comments, although I can't find any mention of it on their website!

无论如何,我推荐它。它易于使用,支持多种语言,并为您生成类图。

Anyway, I recommend it. It's easy to use, supports multiple languages and also generates class diagrams for you.

这篇关于从C#XML注释生成文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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