Visual Studio 2010 does not recognize .cshtml files

I reinstalled Visual Studio 2010, and after that I can’t figure out how to make it recognize the .cshtml files again ... I tried installing MVC 3, but it said it was already installed, mainly when I open it. The cshtml files in Visual Studio do not have any high level of illumination or intelli meaning.

Any sugestions?

Thanks, Alex.

+6
visual-studio-2010 asp.net-mvc-3
source share
2 answers

You will need to reinstall the Microsoft ASP.NET MVC 3 tools - Visual Studio 2010.

You can simply repair MVC 3. If this does not work, I would remove MVC 3 (making sure it also removes the tools) and reinstall both of them.

+5
source share

And even if you install it correctly, there is no support for the visual editor. It will remain as a code. However, with MVC3 and above, there is good intellisense support.

0
source share

All Articles