缺少显式实现的接口的摘要标签?
基本上,我有以下代码:
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
方法被识别为具有 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
确保您的项目正在构建 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.
我确信你已经尝试过一切,我知道你想知道如何去做,但我认为这是不可能的。这是 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
只是为了确定,你尝试过这个吗?:
是的,我知道这意味着同样的事情,但这可能是一个解析问题。
Just to make sure, did you try this?:
Yes, I know it means the same thing, but it could be a parsing issue.
这可能是缓存引起的问题。 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.