你如何让XML注释出现在不同的项目(DLL)?
问题描述:
/// <summary>
/// This method does something...
/// </summary>
public void DoSomething()
{
// code...
}
在使用这种方法/类等等......在不同的.dll文件的评论没有显示出来。
When using that method/class etc... in a different .dll the comments do not show up.
答
一对夫妇的建议:
- 确保你的编译器配置为发出XML文档注释的汇编工作的一部分
- 在控制这个微软的C#编译器开关是
/ DOC
,也可以通过构建
属性配置在项目的设置页面
- Make sure that your compiler is configured to emit the XML doc comments as part of the compilation job
- The Microsoft C# compiler switch that controls this is
/doc
, and can also be configured via theBuild
property page in a project's settings
- The Microsoft C# compiler switch that controls this is
- 在控制这个微软的C#编译器开关是