开发者

Having a single _viewstart and web.config when using areas

Is it possible to have a single _viewtstart.cshtml and web.config file when using area开发者_JAVA百科s in MVC3. I'm finding that I need to have the _viewstart.cshtml and web.config replicated in every area. This seems rather daft especially with the _viewstart file.


Couple of options:

  • Move the _viewStart to the root of your site

  • Or - put in a pre-build event to copy the _viewStart to the areas

HTH.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜