是否有用于在外部程序集中存储 RESX 文件的自定义 ResourceProvider 示例?
我们的 ASP.NET 3.5 Web 应用程序中有如此多的 RESX 文件(用于本地化目的),这使得代码更改非常缓慢;每次第一次运行时,都会为重新编译的 RESX 文件构建所有符号。
理想情况下,我想将这些文件存储在外部程序集中,并创建一个充当桥梁的 ResourceProvider。
这样,RESX 文件就不会受到 Web 应用程序的每次后续编译的影响。
我也不想重新发明轮子;以前一定有人做过这个——但我找不到任何东西!
We have so, so many RESX files in our ASP.NET 3.5 web application (for localisation purposes) and it's making code changes very slow; every time it runs for the first time all the symbols are built for the re-compiled RESX files.
Ideally I'd like to store these files in an external assembly and create a ResourceProvider that acts as a bridge.
That way the RESX files won't be affected by each subsequent compilation of the web app.
I also don't want to reinvent the wheel; someone must have done this before - but I can't find anything on it!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
实际上,阅读这篇文章似乎是一个不错的选择:
http: //msdn.microsoft.com/en-us/library/aa905797.aspx
但我仍然会坚持以防有人有例子!
Actually it looks like reading through this article is going to be a good bet:
http://msdn.microsoft.com/en-us/library/aa905797.aspx
But I'll still hold out in case someone has an example!!