Asp.net-mvc – visual studio 2013 ‘add controller’ missing

asp.net-mvcvisual studio

I update the visual studio 2010 project to visual studio 2013.
Then I want to ad a new controller.
but there is no add Controller option.

enter image description here

But If I create a new project in 2013 it already have the add Controller option.
So how to add the new Controller? something missing in web.config or missing reference?

Best Answer

Make sure your .proj file includes all the appropriate project type Guids.

<ProjectTypeGuids>{E3E379DF-F4C6-4180-9B81-6769533ABE47};{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>

The first GUID allows all standard MVC operations in the context menus.