将区域与 MVC2 一起使用时,区域拥有自己的内容文件夹是一个好习惯吗?
我有一个分为多个区域的 MVC2 应用程序。每个区域都有自己的内容文件夹来存放仅与该区域相关的图像、样式等,这是一个好的做法吗?
I have an MVC2 application that is divided into Areas. Is it good practice for each area to have its own Content folder for Images, Styles etc that only pertain to that area?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
大多数情况下,无论您所在的区域如何,您的整个应用程序都会具有相似的外观和感觉。在这种情况下,您的内容可以跨区域共享。就您而言,如果每个区域都有不同的外观和感觉,那么您可以拥有特定于该区域的内容。但我确信你不会遇到这种情况。
Mostly irrespective of your areas, you entire application will have similar look and feel. In that case your content could be shared across areas. In your case if every area gets a different look and feel then you can have content specific to that area. However I am sure you don't have that scenario.
使用区域一段时间后,每个区域都有自己的内容文件夹来存放区域特定的项目,它似乎运行良好,我们没有遇到与之相关的问题。
Having used areas for a while each with its own Content folder for area specific items it seems to work well and we have come across no problems associated with it.