Mhd
Mhd

Reputation: 2978

Visual Studio not suggesting references any more

Visual Studio 2015 not suggesting to include references when adding new type. For example, in the attached image, XmlDocument is not recognized and I have to include the proper reference manually (add using System.XmlDocument;) although the assembly (dll file) is added as reference. But, usually, VS provides a list of suggestions to include a reference or create new type.

How can I enable back this feature?

enter image description here

Upvotes: 2

Views: 1526

Answers (4)

user4573148
user4573148

Reputation:

I would try in VS 2015 [Tools] --> [Options] --> [Text Editor] --> [C#] --> [Advanced] --> [x] Suggest usings for types in referenced assemblies (check this)

Upvotes: 0

Amit Kumar Singh
Amit Kumar Singh

Reputation: 4475

Press CTRL + . which means (dot) over the word XmlDocument to get it.

Upvotes: 1

Jay Patel
Jay Patel

Reputation: 2451

You should clear your Visual Studio temp files - it can often get confused about project structures and require a fresh start.

First, quit out of VS completely and restart it. If the problem is still there, find your VS cache folder and delete it, and then do a rebuild.

check this link For help finding your cache folder,

Upvotes: 1

Caio Souza
Caio Souza

Reputation: 1

You can try to clear the MEF Component Cache. The component cache is located at %localappdata%\Microsoft\VisualStudio\14.0\ComponentModelCache.
Use this extension or delete the cache manually.

Upvotes: 0

Related Questions