When you use the command line interface in Orchard to generate a module, it seems you cannot use the context menus to create views and you end up manually creating the *.cshtml files. That is when you right click on the project and select “Add” there’s no “View…” option.

This is because the project type isn’t being set correctly by the Orchard code generator.

You can enable the context menus by:

  1. Edit the module’s project file (*.csproj)
  2. Change the ProjectTypeGuids XML Node from:
  3. Reload the project

Now you will get the option to create a view from the Add context menu