VS2012中缺少系统组装的文档 [英] Missing documentation for system-assemblies in VS2012

查看:113
本文介绍了VS2012中缺少系统组装的文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一段时间以来,在我的第二台开发机VS2012上,未显示任何有关系统/GAC/内置程序集的(XML-)文档.例如,当我跳转到mscorlib.dll中的内置Type时,没有文档(请参见屏幕截图).如果包含自己的程序集(并带有各自的XML),则可以看到完整的文档.我尝试重置Intellisense,但这没有帮助.看起来是这样的:

for some time now, on my 2nd development machine VS2012 is not showing any (XML-)documentation for system/GAC/built-in assemblies. E.g., when I jump to a built-in Type that resides in mscorlib.dll, there is no documentation (see screenshot). If I include my own assemblies (that are accompanied by their respective XMLs) I can see the full doc. I tried resetting Intellisense but that didn't help. This is how it looks:

(将扩展注释的每个成员上的加号完全丢失,并且ctrl + space也不显示任何内容)

(The pluses over each member that would expand the comment are totally missing and ctrl+space doesn't show anything either)

推荐答案

此问题的最可能原因是mscorlib的XML文档未与mscorlib参考程序集安装在同一位置.最好的检查方法

The most likely cause for this problem is the XML documentation for mscorlib is not installed in the same location as the mscorlib reference assembly. The best way to check for this

  • 扩展文件顶部的区域
  • 它将包含C#正在使用的程序集的完整路径.例如

C:\ Program Files(x86)\参考程序集\ Microsoft \ Framework.NETFramework \ v4.5 \ mscorlib.dll

C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.5\mscorlib.dll

  • 在资源管理器中打开该目录
  • 检查mscorlib.xml
  • 如果文件不存在,则看起来参考程序集无法正确安装文档.您可以从另一台计算机复制它或修复Visual Studio安装

    If the file is not there then it looks like the reference assemblies failed to properly install documentation. You could just copy it from another machine or repair the Visual Studio installation

    这篇关于VS2012中缺少系统组装的文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆