Alex Hope O'Connor
Alex Hope O'Connor

Reputation: 9694

Visual Studio 2010 not recognisng .cshtml files

I recenetly reinstalled Visual Studio 2010 and since doing so I can not figure out how to get it to recognise .cshtml files again... I tried installing MVC 3 but it said it was already installed, basically when I open the .cshtml files in Visual Studio they have no code high lighting or intelli sense.

Any sugestions?

Thanks, Alex.

Upvotes: 7

Views: 6052

Answers (2)

BraveNewMath
BraveNewMath

Reputation: 8323

And even if you install it right, there is no support for a visual editor. It will remain in code view. However, with MVC3 and beyond, there is good support for intellisense.

Upvotes: 0

Rup
Rup

Reputation: 34408

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

You might just be able to do a repair install of MVC 3. If that doesn't work, I'd uninstall MVC 3 (making sure it removes the tools too) and re-install them both.

Upvotes: 6

Related Questions