开发者

Having a single _viewstart and web.config when using areas

开发者 https://www.devze.com 2023-03-29 20:09 出处:网络
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 ever

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

精彩评论

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