How can add controller in ASP.NET MVC6 beta5 project?

后端 未结 3 1387
刺人心
刺人心 2021-01-15 00:52

i\'m install Visual Studio 2015 final release and create mvc6 beta5 project (by default template). Trying add controller as in mvc 5.2

3条回答
  •  北海茫月
    2021-01-15 01:16

    I am facing the same issue for visual studio 2015 community edition, followed following steps and restarted visual studio. It resolved my issue

    • 1)Open VS2015=>TOOLS=>Customize.
    • 2)Select Commands.
    • 3)Select Context menu.
    • 4)Select Project and Solution ContextMenus|Folder|Add.
    • 5)Check that 'Controller' appears.
    • 6)IMPORTANT -Move up Controller item to the top.
    • 7)Restart visual studio

提交回复
热议问题