How to set up visual studio to create CSHTML files in (Umbraco) Project

Gigi2m02 picture Gigi2m02 · May 8, 2012 · Viewed 19k times · Source

So, i'm developing my razor macroscripts in Visual studio for my Umbraco project. Everything is working fine, but there are two things really annoying.

  • If I want to make a new CSHTML file the best solution for this is to duplicate an existing file.
  • I dont have full razor IntelliSense like e.g. Html.Raw

Is there a way to configure my project to use this features? Didn't find a .cshtml template yet.

Answer

Douglas Ludlow picture Douglas Ludlow · May 17, 2012

You need to have the MVC Framework installed, then when you open the project as a website, you should be able to create and edit cshtml files with syntax highlighting. See my answer to the following post for more details:

Setting up local development environment for Umbraco