.Net Core tag helper intellisense and color coding not working

江枫思渺然 提交于 2019-11-29 03:33:10

I fixed it in two steps.

1.Install Razor tool from package manager console. It is pre-release for now

Install-Package Microsoft.AspNetCore.Razor.Tools –Pre
  1. Download and install Razor Language Services from marketplace. (Your visual studio instance should be closed)

After restart visual studio, intellisense and coloring should be working for tag helpers.

This is a semi-old Q&A, but I recently solved a similar problem where tag helper intellisense and highlighting/colorization suddenly stopped working, so I post this for posterity.

I tried to repair and reinstall Visual Studio to no avail. What ultimately solved this issue follows:

  1. Close all instances of Visual Studio.

  2. Download and install the latest .NET Core SDK.

  3. Open "Apps & features" (Add or remove programs)

  4. Search for ".NET Core SDK" and uninstall all except the latest version (x64 and/or x86).

  5. Reopen Visual Studio.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!