"新增控制器" /"新增查看"在混合MVC / WebForms的ASP.NET应用程序 [英] "Add Controller" / "Add View" in a hybrid MVC/WebForms ASP.NET application
问题描述
我有一个现有的WebForms项目,其中我加入MVC页面。我创建了一个MVC项目和复制项目类型的GUID。
I have an existing WebForms project to which I'm adding MVC pages. I created an MVC project and copied the project type guids.
它工作正常,但我不能让Visual Studio中显示添加控制器或添加视图在我的控制器和视图目录向导(他们不是 /控制器
和 /浏览次数
,他们在 /美孚/控制器
和 /美孚/浏览次数
)。
It works fine, but I can't get Visual Studio to display the "Add Controller" or "Add View" wizards on my controllers and views directories (they're not /Controllers
and /Views
, they're in /Foo/Controllers
and /Foo/Views
).
是否有可能让奇才?
推荐答案
我已经放弃了这一点。相反,我有一些基本ReSharper的片段。太糟糕,这不是可配置的。
I've given up on this. Instead, I have some basic Resharper snippets. Too bad this isn't configurable.
这篇关于"新增控制器" /"新增查看"在混合MVC / WebForms的ASP.NET应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!