I have some UI classes that I want to re-use across a number of projects. Normally I would put them in a class library to be referenced by the projects. However, they reference resources (mainly layouts and strings) and resources in class libraries are not (yet?) supported.
So I'm wondering what is best practice for this scenario?
One obvious approach is to put the classes in a class library and pass a Context reference plus all necessary integer resource values to instances at construction-time. This still requires the resources themselves to be duplicated across the non-library projects, but I could live with that if I could re-use the code.
Another thought: is it possible to load layouts from .net embedded xml resources?
Thanks Jon. It turned out I was using 4.3.something on the machine in question. I was so sure that it was up to date that I didn't check, and then I found old comments on SO complaining about lack of resource support in class libs which just re-enforced by belief that it still wasn't supported. I've updated to 4.8 and all is good.