Visual Studio是否可以选择生成Javadoc样式注释的html文档? [英] Does Visual Studio have an option to generate html documentation for Javadoc-style comments?

查看:179
本文介绍了Visual Studio是否可以选择生成Javadoc样式注释的html文档?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Visual Studio是否可以选择生成Javadoc样式注释的html文档?如果是这样,必须采取哪些步骤来完成此任务?

Does Visual Studio have an option to generate html documentation for Javadoc-style comments? If so, what steps are necessary to accomplish this?

在BlueJ中,有一个选项可以将Javadoc样式的注释转换为html文件.

In BlueJ there is an option to translate Javadoc-style comments into an html file.

就像下图所示的使用BlueJ的Java一样,我想对Visual Studio进行同样的操作:
(来源: time-tripper.com )

Like the following picture shows for Java using BlueJ I want to do the same with Visual Studio :
(source: time-tripper.com)

推荐答案

您实际上是用Java指JavaDoc吗?如果是这样,我不相信-只需使用javadoc本身即可. Visual Studio并不真正支持Java.

Do you actually mean JavaDoc, in Java? If so, I don't believe so - just use javadoc itself. Visual Studio doesn't really support Java.

如果您是指C#XML文档注释,则可以更改项目属性以构建XML文件,然后使用 NDoc (已停产)或 Sandcastle 来构建HTML(或chm等).坦率地说,这并不像以前那么容易.

If you mean C# XML documentation comments, then you can change the project properties to build the XML file, and then use NDoc (discontinued) or Sandcastle to build HTML (or chm etc). It's not as easy as it might be, admittedly.

如果您使用的是C ++,则应该查看 Doxygen .可能有Visual Studio插件,但是最好将Doxygen作为构建过程的一部分运行.如果您使用的是C ++/CLI,则可能有一些等效的C#XML注释,但我不知道.

If you're using C++, you should probably look at Doxygen. There may be Visual Studio plugins, but you may be best off just running Doxygen as part of your build process. If you're using C++/CLI there may be some equivalent of C# XML comments, but I don't know of it.

这篇关于Visual Studio是否可以选择生成Javadoc样式注释的html文档?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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