There is an issue that causes ASP.NET MVC Razor pages to stop syntax highlighting and intellisense to not work. Add the following key to the web.config appSettings node:
<add key=“webpages:Version” value=“2.0.0.0” />