Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MVC 3 Razor Intellisense

I have Visual Studio 2010 Ultimate installed with SP1 RTM and MVC 3 RTM installed as well. The problem I am having is that the Razor intellisense will not work. When I start a new MVC 3 project with the Razor engine and open a view, the Razor highlighting works but all of the key words are underlined with red squiggles and the intellisense doesn't work. I do not have ReSharper installed.

I have tried reinstalling MVC 2, MVC 3, and Visual Studio 2010 Ultimate but intellisense will still not work for Razor. Has anyone else had this issue, or know how to fix it?

Thanks in advance!

like image 728
Justin Avatar asked Dec 30 '25 20:12

Justin


1 Answers

When uninstalling make sure to uninstall all of the below:

  • Microsoft ASP.NET MVC 3
  • Microsoft ASP.NET MVC 3 - Visual Studio 2010 Tools Update (you might not have this one installed)
  • Microsoft ASP.NET Web Pages
  • Microsoft ASP.NET Web Pages - Visual Studio 2010 Tools

Now install the following:

  • ASP.NET MVC 3 Tools Update

Razor Intellisense should work.

like image 105
Darin Dimitrov Avatar answered Jan 05 '26 04:01

Darin Dimitrov



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!