Reputation: 15854
I am new to C#, I have been working on Java. So when I write any class name in Visual Studio, VS do not import or show suggestions to import namespaces,unlike we do in my Eclipse by CTRL+SPACE
.
I used CTRL + .(dot)
and CTRL+SHIFT+F10
but they did not help. I am really frustrated, please suggest any idea.
Your help will be appreciated. Thanks
Upvotes: 1
Views: 1809
Reputation: 3222
If you have a namespace in a different DLL in your project, you first need to right-click references and select "add reference" and then checkmark the dll.
After doing this, CTRL+DOT will work :)
If it is a reference to an external package, such as NuGet, you can right-click the solution file and choose "Restore Nuget Packages"
Upvotes: 3