How do you get XML comments to appear in a different project (dll)?

前端 未结 1 647
-上瘾入骨i
-上瘾入骨i 2020-12-03 04:17
/// 
/// This method does something...
/// 
public void DoSomething() 
{
    // code...
}

When using that method/cla

相关标签:
1条回答
  • 2020-12-03 05:13

    A couple of suggestions:

    • 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
    • Make sure that the XML file produced by the compiler matches the name of the DLL (i.e. myAssembly.dll -> myAssembly.xml)
    • When you use the assembly in another project, make sure that the XML file is in the same directory as the DLL being referenced.
    0 讨论(0)
提交回复
热议问题