Mostafa Mostafa - 1 year ago 147
C# Question

Is controller scaffolding missing in MVC 6?

When creating controller in MVC 6 I don't see the scaffolding for creating controller methods? Will they be missing or in the production release?

Answer Source

If you are referring to CRUD scaffolding for controllers and views with ASP.NET 5 and MVC 6, it has been split off from the Visual Studio GUI and moved to command line.

You'll need a package called CodeGenerators, add it to your project.json configuration file as:

"dependencies": {
    "Microsoft.Framework.CodeGenerators.Mvc": "1.0.0-beta4",

At the moment VS does not offer GUI command to perform scaffolding but you can give a look to this link :

ASP.NET 5 (MVC6) Ground Up #4 - Scaffolding CRUD in MVC

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download