你如何让XML注释出现在不同的项目(DLL)?出现在、注释、不同、项目

2023-09-02 01:33:34 作者:爱伱丶此生不变

/// <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 the Build property page in a project's settings