缺少显式实现的接口的摘要标签?

发布于 2024-12-05 01:11:19 字数 1079 浏览 2 评论 0原文

基本上,我有以下代码:

public class MyDictionary<TKey, TValue> : IDictionary<TKey, TValue>
{
    /// <summary> My Summary </summary>
    void MyDictionary<TKey, TValue>.ICollection<KeyValuePair<TKey, TValue>> { ... }
}

MyProject.XML

<member name="M:MyProject.MyDictionary`2.System#Collection#Generic#ICollection{System#Collections#Generic#KeyValuePair{TKey@TValue}}#Clear">
 <summary>
  My Summary
 </summary>
</member>

Sandcastle 的内置输出:

<块引用>

警告:ShowMissingComponent:缺少 M:MyProject.MyDictionary`2.System#Collections#Generic#ICollection{T}#Clear 的文档

所以,不确定在这里到底要做什么。我的 Sandcastle 构建选项确实包含显式实现,这就是它在文档中为它们创建页面的原因,但似乎无法弄清楚我确实为此方法创建了 XML 注释。奇怪的是,void MyDictionary.IDictionary.Add(TKek key, TValue value) 方法被识别为具有 XML 注释。事实上,所有隐式实现的 ICollection> 都是由 ICollection> 隐式实现的。方法给 Sandcastle 带来了问题。有什么帮助吗?

Basically, I have the following code:

public class MyDictionary<TKey, TValue> : IDictionary<TKey, TValue>
{
    /// <summary> My Summary </summary>
    void MyDictionary<TKey, TValue>.ICollection<KeyValuePair<TKey, TValue>> { ... }
}

MyProject.XML

<member name="M:MyProject.MyDictionary`2.System#Collection#Generic#ICollection{System#Collections#Generic#KeyValuePair{TKey@TValue}}#Clear">
 <summary>
  My Summary
 </summary>
</member>

Sandcastle's Built Output:

Warn: ShowMissingComponent: Missing documentation for M:MyProject.MyDictionary`2.System#Collections#Generic#ICollection{T}#Clear

So, not sure what to do here exactly. I did have my Sandcastle Build Options include explicit implementations, which is why it creates a page for them in the documentation, but it can't seem to figure out that I did create XML Comments for this method. Oddly enough, the void MyDictionary<TKey, TValue>.IDictionary<TKey, TValue>.Add(TKek key, TValue value) method is identified as having XML Comments. In fact, all of the implicitly implemented ICollection> methods are giving Sandcastle an issue. Any help?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

堇色安年 2024-12-12 01:11:19

确保您的项目正在构建 xml 文档文件。项目属性中有一个用于构建 xml 文件的复选框。

在此处输入图像描述

Make sure that your project is building the xml documentation file. There is a check box in the project properties to build the xml file.

enter image description here

悲喜皆因你 2024-12-12 01:11:19

我确信你已经尝试过一切,我知道你想知道如何去做,但我认为这是不可能的。这是 Sandcastle 中的错误,而且还没有修复.. :(

http://sandcastle.codeplex.com /workitem/5594

I'm sure that you tried everything, and I know that you want to know how to do it, but I think it's impossible. It's bug in Sandcastle, and it isn't fixed still.. :(

http://sandcastle.codeplex.com/workitem/5594

紫南 2024-12-12 01:11:19

只是为了确定,你尝试过这个吗?:

/// <summary>
/// My Summary 
/// </summary>

是的,我知道这意味着同样的事情,但这可能是一个解析问题。

Just to make sure, did you try this?:

/// <summary>
/// My Summary 
/// </summary>

Yes, I know it means the same thing, but it could be a parsing issue.

喜爱纠缠 2024-12-12 01:11:19

这可能是缓存引起的问题。 Sandcastle 中进行了一些更改,要求在新版本中删除旧的缓存文件。如果尚未删除,它们可能会导致问题。您可以在发行说明在“重大更改”部分。

This could be an issue caused by caching. There were changes in Sandcastle that require that the old cache files be deleted with the new release. If not already deleted, they may be causing a problem. You can find out where to find the cache files and delete them in the release notes in the Breaking Changes section.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文