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

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

问题描述

我已经八方通做了点写作的类和方法与C#XML语法很好code意见。我永诺希望能够轻松地将其导出以后。

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.

今天,我居然有这样做的,但我有麻烦找出如何。有我丢失的东西?我想去的菜单 - >建设 - >构建code文档 ...

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...

编辑:这是一个相当艰巨的任务,在NDoc的和沙堡环节都可能真的要走的路,但它仍然是一个很大的混乱,特别是如果你想要做的是一个快速导出为HTML:(

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::该链接有一个简单的XSLT快速和肮脏的出口:<一href="http://www.$c$cproject.com/KB/XML/XMLDocStylesheet.aspx">http://www.$c$cproject.com/KB/XML/XMLDocStylesheet.aspx

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

推荐答案

其实这是在项目属性。建立标签,输出部分,XML文档文件,然后输入文件名。它将建在项目的每一个版本。

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.

之后,你可以构建实际的帮助,<一个href="http://www.microsoft.com/downloads/details.aspx?FamilyId=E82EA71D-DA89-42EE-A715-696E3A4873B2&displaylang=en">Sandcastle.

After that you can build the actual help with Sandcastle.

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

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