Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No intellisense in ASP.Net Core

After installing ASP.Net Core via Visual Studio ==> New Project ==> Web ==> ASP.Net Web Application ==> OK ==> ASP.Net 5 Templates. Restarted the system after the installation then create a new project of ASP.NET 5 Template ==> Empty website. I dont get any intellisense and all class names are in RED as if the Visual Studio or Resharper is unable to locate the definition.

Here are some screen shots. enter image description here

and no intellisense

enter image description here

When using services object, I was expecting services.AddSingleton, service.AddScoped services.AddTransient service.AddLogging and so on...

I have restarted the visual studio but still the same result, however the project compiles and runs as expected but its very difficult to figure out the new api without any support from the intellisense.

I have resharper v 9 with update 1 installed.

Thanks!

like image 699
Yawar Murtaza Avatar asked May 12 '16 20:05

Yawar Murtaza


People also ask

Why is my IntelliSense not working?

If you find IntelliSense has stopped working, the language service may not be running. Try restarting VS Code and this should solve the issue. If you are still missing IntelliSense features after installing a language extension, open an issue in the repository of the language extension.

How do I enable IntelliSense in Visual Studio?

To access this options page, choose Tools > Options, and then choose Text Editor > C# > IntelliSense.

Why is my IntelliSense not working in VS Code?

If IntelliSense is not working as it should on your Windows 11/10 PC, you can try restarting VS Code and this should solve the issue. Restarting the program can be really effective and time saving in some cases. If the issue persists, you can try restarting your computer altogether.


1 Answers

I had the same issue with .NET Core and disabling Resharper worked for me. As soon as I disabled it, Intellisense in Razor views started working again.

like image 166
ianpoley Avatar answered Oct 18 '22 02:10

ianpoley