概述并不表示该组件,如果它被添加作为参考并不、组件、表示

2023-09-03 15:44:36 作者:爱我你怕了吗ず.

我创建了一个类库在C#中,其中有许多功能与总结(XML文档注释)。

I've created a 'Class Library' in C#, which has many functions with summary (XML documentation comments).

例如

///<summary>
///Adds the two numbres
///</summary>
public void Add()
{
    //statements
}

如果我使用的功能在同一个命名空间,其显示的摘要,但如果我增加一条,作为参考一些ohter工作区(解决方案),它没有显示的摘要。

if i use the function in the same namespace , its showing the summary, but if i added it as reference in some ohter workspace(solution) its not showing the summary.

如何使其可见我其他的解决方案,如果增加一条,作为一个参考,并笏可能是这个原因?

How to make it visible i other solutions if a added it as a reference, and wat may be the reason for this?

推荐答案

您需要生成XML文档的组件(一个文件名为myassembly.xml),并将其复制旁边您的.dll那里它是由您的其他项目引用。请参见此页面MSDN 的说明。

You need to generate XML documentation for the assembly (a file named myassembly.xml) and copy it alongside your .dll where it's referenced by your other projects. See this page in MSDN for instructions.