开发者

How can I get Asp.net MVC add view dialog out of Views folder?

开发者 https://www.devze.com 2022-12-17 03:51 出处:网络
Since I followed this article to implement a theme engine in Asp.net MVC website. But by doing this I can\'t have \"Add View\" dialog by right click on ~/Themes/ folder. By default \"Add View\" dialog

Since I followed this article to implement a theme engine in Asp.net MVC website. But by doing this I can't have "Add View" dialog by right click on ~/Themes/ folder. By default "Add View" dialog can only show up when I click ~/Views/ folder. Can I have any chance to set it show up for ~/Themes/ Folder?

开发者_StackOverflowEdit: My Teammate want to change some options in asp.net mvc T4 template, he put CodeTemplates in website root folder. He can't find the options from his T4 by doing : Add --> New Item ---> MVC View Page

It seems Views folder can't be changed to another name in ASP.net MVC. Otherwise you will lose those T4 related items in VS IDE.


You can use Add --> New Item ---> MVC View Page everywhere in your project.


You can not add view with right click if your return type of method is not ActionResult.


Ok, Since three weeks past, no accept answer for this question so I guess this is by design issue can't be fixed.

0

精彩评论

暂无评论...
验证码 换一张
取 消