Visual Studio Intellisense not showing some classe

2019-04-11 17:06发布

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?

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

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

I have tried:

  • Restarting Visual Studio (With and without closing tabs)
  • Deleting the contents of %LocalAppData%\Microsoft\VisualStudio\14.0\ComponentCacheModel folder
  • Resetting import and export settings

7条回答
我只想做你的唯一
2楼-- · 2019-04-11 17:57

I am using ReSharper. What worked for me:

  1. Unload project.
  2. ReSharper > Options > Environment > General > Clear caches
  3. Close solution.
  4. Exit Visual Studio.
  5. Restart Visual Studio.
  6. Reload project.
查看更多
登录 后发表回答