如何在C#/ VisualStudio 2008中导出代码文档? [英] How do I export the code documentation in C# / VisualStudio 2008?

查看:339
本文介绍了如何在C#/ VisualStudio 2008中导出代码文档?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经做了一个很好的代码注释的类和方法与C#xml语法。我希望以后可以很方便地出口他们。



今天我其实必须这样做,但是找不到如何做。有没有我失踪的东西?我想去 Menu-> Build-> Build Code Documentation ...



编辑:一个艰巨的任务,NDoc和Sandcastle的链接可能是真的要走了,但它仍然是一个大混乱,特别是如果你想做的是快速导出到html:(



EDIT2:此链接有一个简单的xslt快速和脏的导出: http://www.codeproject.com/KB/XML/XMLDocStylesheet.aspx

解决方案

实际上它在项目属性中,构建选项卡,输出部分,XML文档文件,并输入文件名,它将建立在项目的每个构建之上。



之后,您可以使用 Sandcastle


I have allways made a point of writing nice code comments for classes and methods with the C# xml syntax. I allways expected to easily be able to export them later on.

Today I actually have to do so, but am having trouble finding out how. Is there something I'm missing? I want to go Menu->Build->Build Code Documentation...

EDIT: This is quite a daunting task, the NDoc and Sandcastle links are probably really the way to go, but it still is a big mess, especially if all you want to do is a quick export to html :(

EDIT2: This link has an easy xslt for quick-and-dirty exports: http://www.codeproject.com/KB/XML/XMLDocStylesheet.aspx

解决方案

Actually it's in the project properties. Build tab, Output section, XML documentation file, and enter the filename. It will be built on every build of the project.

After that you can build the actual help with Sandcastle.

这篇关于如何在C#/ VisualStudio 2008中导出代码文档?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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