/// <summary>
/// This method does something...
/// </summary>
public void DoSomething()
{
// code...
}
当在不同的 .dll 中使用该方法/类等时,注释不会显示。
一些建议:
- Make sure that your compiler is configured to emit the XML doc comments as part of the compilation job
- 控制它的 Microsoft C# 编译器开关是
/doc
,也可以通过配置Build
项目设置中的属性页
- 确保编译器生成的 XML 文件与 DLL 的名称匹配(即
myAssembly.dll
-> myAssembly.xml
)
- 当您在另一个项目中使用该程序集时,请确保 XML 文件与所引用的 DLL 位于同一目录中。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)