Context menu to Add Controller/View missing

前端 未结 17 1152
时光说笑
时光说笑 2020-11-28 06:04

I have integrated ASP.NET MVC 4 into existing asp.net web site. Both works fine but I don\'t see any menu/shortcuts to create controller/view within visual studio IDE. Are

17条回答
  •  一个人的身影
    2020-11-28 06:15

    I know this is an old post, but I just ran into this switching between VS2013 and VS2012 for an MVC 5 Project. The issue I had is that the version of the MVC Template I was using wasn't installed from the Visual Studio update. VS2012 didn't come with MVC5 as it came out after it, so an update was required for VS2012 to add the template. Same with VS2010 and MVC4 I imagine.

    Anyhow, downloading the update from Microsoft resolved my issue as when another version opened and saved the project, it would again disappear when using the fix above.

    Here is the link to the VS2012 MVC5 update. Ensure that you download and install both the Tools update and the VS plugin.

    http://www.microsoft.com/en-us/download/details.aspx?id=41532

提交回复
热议问题