Tuesday, May 8, 2018

Visual Studio 2017 not syntax highlighting or Intellisense for razors views

Leave a Comment

After installing VS 2017 any of my .cshtml files are shown correctly in the editor. I tried uninstalling/installing again and nothing happened. I did all options for a similar problem on another thread without any results.

enter image description here

Other files are working fine, and I haven't found any other problem in my VS installation. I have the Enterprise Edition with last update.

1 Answers

Answers 1

One time I faced this issue and I tried below steps.

  1. Close Visual Studio
  2. Delete the solution user options file (.suo)
  3. Re-open the solution in Visual Studio

Or try to delete ComponentModelCache from %LOCALAPPDATA%\Microsoft\VisualStudio\14.0\ComponentModelCache

If You Enjoyed This, Take 5 Seconds To Share It

0 comments:

Post a Comment