tags:

views:

139

answers:

2

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?

Edit: 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.

+2  A: 

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

ali62b
Yes, This method can help user create a View, but user won't get any T4 related addtional helper template in the view. Any other good ideas?
CodeYun
Sorry the link you mentioned seems to be broken.
ali62b
Sorry I have no idea +1 to your comment
ali62b
To get T4 generation, you will have to add to the root "Views" folder. You could create into "Views", and then just copy/drag the generated file into your Themes folder.
Chris Melinn
A: 

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

CodeYun