Visual Studio XML摘要不起作用 [英] Visual Studio XML summaries not working

查看:79
本文介绍了Visual Studio XML摘要不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我以前使用Visual Studio时,可以使用///在处声明我的方法的摘要,它将自动生成所有标记并为任何参数添加一行,但是在安装Visual Studio 2015之后,我似乎不再能够默认情况下执行此操作.我需要在设置中启用某些功能吗?我用C ++编写代码,但是如果我不认为这是问题所在.

When I used to use Visual Studio I could use /// to declare a summary of my method at the and it would autogenerate all the tags and add a line for any params however after installing Visual Studio 2015 I no longer seem able to do this by default. Is there something I need to enable in the settings? I'm coding in C++ however if I don't think that is the problem.

谢谢

推荐答案

这是Visual Studio设置.对于C#,您可以通过转到 Tools->打开它.选项,并确保启用了为///生成XML文档注释.

This is a Visual Studio setting. For C#, you turn it on by going to Tools -> Options and ensuring that the Generate XML documentation comments for /// is enabled.

VB的基本"下有一个类似的设置,但是我看不到C ++的类似设置(尽管我没有安装完整的C ++功能,但这可能是原因).希望您可以找到类似的设置.

There is a similar setting under Basic for VB, but I can't see a similar setting for C++ (I don't have the full C++ feature installed though so that may be why). Hopefully you can find a similar setting.

这篇关于Visual Studio XML摘要不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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