ResX files and optional application layer

we are building a web application using some great asp.net web toolkit. In the beginning, we created many base classes, such as commands and server controls, to simplify our work.

Now that we have built our application using this, we decided to redirect another. In order not to copy all of our work and not create it from scratch, we decided to separate our server controls, commands and all base classes from the asp.net project and encapsulate it in another reusable project ...

Now we have a big problem, because many of these classes use RESX files that are attached to the aur asp.net application as App_GlobalResources ... Where should we place them, or how can we use them to access both projects and still have a good application architecture?

+3
source share
1 answer

Any resources used by your server / commands / base classes must be in the same assembly as these components. These components must be essentially self-contained if you want to distribute and reuse them, which means that their resources must be combined with them.

resx App_GlobalResources , " ".

+1

Source: https://habr.com/ru/post/1753471/


All Articles