Lack of intellisense in ASP.Net Core

After installing ASP.Net Core through Visual Studio ==> New Project ==> Web ==> ASP.Net Web Application ==> OK ==> ASP.Net Templates 5. Reboot the system after installation, then create a new ASP project .NET 5 Template ==> Empty web site. I am not getting intellisense, and all class names are in RED, as if Visual Studio or Resharper could not find the definition.

Here are some screenshots. enter image description here

and without intellisense

enter image description here

When using the service object, I expected services.AddSingleton, service.AddScoped services.AddTransient service.AddLogging and so on ...

I restarted the visual studio, but the same result, however, the project compiles and works as expected, but it is very difficult to define a new api without support from intellisense.

I have resharper v 9 with update 1 installed.

Thanks!

+5
source share
2 answers

It all depends on which version of ASP.NET 5 you are using, as it was a small moving target for support. It should work, but for (I think) RC1 bits, but if you try to use current builds before RC2, there are known problems (for example, the toolkit is completely rewritten). We hope that everything will be fixed and updated after RC2, but with recent announcements about the continued violation of the toolkit settings (project.json is gradually being stopped and replaced by .csproj files), this may not be so simple. We will have to wait and see what the RC2 instrument looks like.

+2
source

I had the same issue with .NET Core and disabling Resharper for me. As soon as I turned it off, Intellisense looks at Razor started working again.

+5
source

All Articles