Search code examples
asp.net-mvc-3scaffoldingasp.net-mvc-scaffolding

Can I choose area when Scaffolding in ASP.NET MVC3?


How do I run MvcScaffold in an area in asp.net mvc3? Is it even possible? I would like to execute something like:

Scaffold Controller MyModel --area MyArea

Solution

  • just use one dash instead -Area

    -Area : If you want the generated files to go into a specific ASP.NET MVC area, enter its name here. Note that you must have created that area already; the scaffolder doesn’t create areas automatically (yet).

    Source