Reputation: 2978
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?
Upvotes: 2
Views: 1526
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
Reputation: 4475
Press CTRL + . which means (dot) over the word XmlDocument to get it.
Upvotes: 1
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
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