cytek04
cytek04

Reputation: 596

VS 2019 Intellisense Suddenly Quit Working in View/Razor Files

I have been working on this project for a couple months and suddenly intellisense quit working only in the view/cshtml files. I had left VS open and debugging for several days without working on the project. When I came back I didn't have any color coding for the C# parts of the files. I also found that it doesn't work in any of the views, but does work in my controllers and models. I have tried many suggestions, but to no luck. I tried everything in this link.

I am working on a basic MVC app in VS2019. I have Bootstrap 3, Jquery, and Entity Framework installed.

I would greatly appreciate any help. This is driving me nuts.

Update: This is also not working in any solutions in Visual Studio. So maybe something wrong in VS?

Upvotes: 1

Views: 869

Answers (2)

Mahdi
Mahdi

Reputation: 11

It might work using the following method: Right click on the razor file then click open. There is no logic to it but this works for me.

Upvotes: 0

cytek04
cytek04

Reputation: 596

The problem was fixed after installing Visual Studio 2022 and opening the project there. Still in the dark as to what caused the problem in VS2019.

Upvotes: 1

Related Questions