如何编写一个MVC3项目模板,将提供选项刀片或其他意见的.aspx [英] How to write an MVC3 Project Template that will offer option Razor or .aspx views
问题描述
我已经写了两个独立的项目模板来创建MVC3项目(都基于标准的Microsoft模板,但额外的控制器/视图我自己) - 一个用ASPX的意见,另用剃刀意见
I have written two separate project templates to create MVC3 projects (both based on the standard Microsoft template, but with additional controllers/views of my own) - one with ASPX views, and the other with Razor views.
不过,而不是两个单独的模板,我宁愿模仿微软MVC3模板工程它同时提供视图引擎选项,在第二个对话框中选择的方式。我知道这是用向导做的,但我找不到在MVC源$ C $ c中的精灵(我已经下载)。是否有人知道在哪里可以找到向导,或者有其他有益的建议?谢谢你。
But, rather than have two separate templates, I would rather mimic the way that the Microsoft MVC3 template works, which offers both view engine options, selected in a second dialog. I know that this is done with a Wizard, but I can't find the Wizard in the MVC source code (which I've downloaded). Does anybody know where to find the Wizard, or have other helpful suggestions? Thanks.
推荐答案
在 Microsoft.VisualStudio.Web.Mvc.3.0.dll
中存在的自定义MVC New Project对话框。我们不船舶源$ C $ C表示装配。
The custom MVC New Project dialog exists in Microsoft.VisualStudio.Web.Mvc.3.0.dll
. We do not ship the source code for that assembly.
这篇关于如何编写一个MVC3项目模板,将提供选项刀片或其他意见的.aspx的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!