开发者

ResX files and extra application layer

we are making an web application using some big asp.net web toolkit. At the beginning we creat开发者_StackOverflowed a lot of base classes such as commands and server controls to make our work easier.

Now when we built our application using this we decided to biuld another one. To not copy all our work, and not making it from scratch we decided to separate our server controls, commands and all base clases from asp.net project and encapsulate it in another, reusable project...

Now we have the big problem, because many of those classes are using RESX files that are attached to aur asp.net application as App_GlobalResources... Where should we put them, or how can we use them to be avaible in both projects and still have a nice application architecture?


Any resources that your server controls/commands/base classes are using need to be in the same assembly as those components. These components have to be essentially self-contained if you want to distribute and reuse them, which means that their resources have to go along with them.

Your App_GlobalResources resx files need to be split up and the resources put into new resource files in the "reusable" assembly.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜