Visual Studio Intellisense不显示某些类 [英] Visual Studio Intellisense not showing some classes

查看:123
本文介绍了Visual Studio Intellisense不显示某些类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的Visual Studio在IntelliSense自动完成功能中没有显示很多可用的类.例如,我正在处理的项目引用了Microsoft.Xna.Framework命名空间,但是即使在文件中使用Microsoft.Xna.Framework添加using语句之后,IntelliSense也无法识别Texture2DRectangle之类.但是,我仍然可以输入它们,而不会出现编译器错误.知道发生了什么事吗?

My Visual Studio is not showing a lot of the available classes in the IntelliSense auto-complete. For example, a project I'm working on has a reference to the Microsoft.Xna.Framework namespace, yet even after adding the using statement using Microsoft.Xna.Framework in a file, IntelliSense is unable to recognize classes like Texture2D and Rectangle. I can still type them in, however, without getting a compiler error. Any idea what's happening?

IntelliSense可以检测到System.Diagnostics之类的标准库,但不能检测任何外部库.

The IntelliSense detects standard libraries like System.Diagnostics but not any external ones.

这不是NameSpace冲突问题,因为IntelliSense中也缺少当前名称空间中的类.

It is not a NameSpace conflict issue because classes within the current namespace are also missing from the IntelliSense.

我尝试过:

  • 重新启动Visual Studio(带有和不带有关闭选项卡)
  • 删除%LocalAppData%\Microsoft\VisualStudio\14.0\ComponentCacheModel folder
  • 的内容
  • 重置导入和导出设置
  • Restarting Visual Studio (With and without closing tabs)
  • Deleting the contents of %LocalAppData%\Microsoft\VisualStudio\14.0\ComponentCacheModel folder
  • Resetting import and export settings

推荐答案

好的,所以可能不是最好的解决方案,但是它可以工作.我重新安装了Visual Studio,问题已解决.而且,此后一直没有出现(这发生在大约3个月前).

OK so probably not the best solution but it works. I reinstalled Visual Studio and the problem was fixed. Also, it hasn't shown up since (this happened about 3 months ago).

这篇关于Visual Studio Intellisense不显示某些类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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