可扩展的添加控制器对话框?
我找不到任何有关如何将自定义脚手架添加到“添加控制器”对话框的文章。我知道如何替换/更改现有模板,或添加可以从控制台运行的自定义模板,但我找不到如何将自定义模板作为附加选项添加到对话框中。还想知道我添加到自定义模板的命名参数是否会以某种方式显示在对话框中。来自几个谈论新的可扩展脚手架的博客:
“添加控制器对话框通过 NuGet 包(例如 MvcScaffolding)支持可扩展脚手架。” 来自:http://www.asp.net/mvc/mvc3
到目前为止没有任何文章据我所知,实际上展示了如何将自定义脚手架作为选项添加到“添加控制器”对话框中。他们要么通过覆盖现有模板来更改现有模板,要么添加只能从控制台运行的新模板。
如何将自定义模板添加到“添加控制器”对话框的下拉列表中?
I can't find any articles on how to add custom scaffolding to the Add Controller dialog. I know how to replace/change the existing templates, or add custom templates that can be run from the console, but I can't find how to add custom templates as additional options to the dialog. Wondering also if the named parameters that I add to custom templates will show up in the dialog in some way. from several blogs talking about the new extensible scaffolding:
"Add Controller Dialog supports extensible scaffolds via NuGet packages such as MvcScaffolding."
from: http://www.asp.net/mvc/mvc3
None of the articles as far as I can tell actually show how to add the custom scaffolds as an option to the Add Controller dialog. They all are either changing the existing templates by overiding them, or are adding new ones which can only be run from the console.
How do I add my custom templates to the drop down in the Add Controller Dialog?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这篇博文来自菲尔·哈克 说:
因此,我首先下载 MvcScaffolding 包,看看是否可以从那里获得任何线索。
This blog post from Phil Haack says:
So I would start by downloading the MvcScaffolding package and see if you can get any clues from there.