In Visual Studio 2013 / ASP.NET MVC 5, How do I add a new Controller?

前端 未结 4 868
孤独总比滥情好
孤独总比滥情好 2020-12-31 07:51

In ASP.NET MVC5 + VS 2013 (preview at time of writing), how do I add a new Controller?

In past versions (VS 2012 / MVC 4), I was able to right click on the Controll

4条回答
  •  别那么骄傲
    2020-12-31 08:26

    While working on a new project, I noticed that the Controller option was present until I added the System.Web.Mvc reference. Removing the System.Web.Mvc reference restored the option to add an MVC 5 Controller.
    EDIT: Adding the new Controller automatically added the System.Web.Mvc reference again.

提交回复
热议问题