问题
I have downloaded and installed the release version of ASP.NET MVC 3 (File version: 1.13.113.0), Created a new project of type ASP.NET MVC 3 web application.
When I right click on Controllers folder=>Add Controller, The Add Controller dialog doesn't have any scaffolding option. It just contains a textbox for Controller name and a checkbox to add action methods for CRUD scenarios.
should I do anything to view the Scaffolding options (Template, Model Class, Data Context Class and View) in Add controller dialog box?
回答1:
In the Web Platform Installer 3.0 you can find something called "ASP.NET MVC 3 Tools Update" Install that one and you get the Scaffolding options and some other stuff.
回答2:
Yes agreed it takes forever to install via web platform installer. Use link http://www.microsoft.com/download/en/details.aspx?id=1491 to download and install.
回答3:
Make sure you have the lastest with the tool update.
http://www.asp.net/mvc
回答4:
ASP.NET MVC 3 Tools Update can take a while, but it fixed it for me.
If you tell Web Platform Installer to update Visual Studio it will take basically forever, I had to force shutdown and try again just doing MVC 3.
Thanks Beijer.
来源:https://stackoverflow.com/questions/5762728/missing-scaffolding-options-in-asp-net-mvc-3-add-controller-dialog