Question about satellite assemblies

S

scpedicini

Let's say that I've built an assembly, called myapi.dll whose default
resource messages are english. Then let's say I create a german
satellite assembly for the assembly called myapi.de.resources.dll.
However, let's say that I have a german client who is using both
myapi.dll and myapi.de.resources.dll; however, they would like to
override a single resource string from myapi.de.resources.dll. Is it
possible for them to create a "satellite for the satellite", and
override a single string from my german satellite assembly? This would
be very useful to me, but I just can't figure out how to do it.


So the structure would be something like this:
myapi.dll
-- myapi.de.resources.dll
-- -- myapi.de.client1.resources.dll (contains a single resource string
that overrides the equivalent resource string in
myapi.de.resources.dll)


Thanks very much for your help,
Shaun Pedicini
 
A

AnsweringMachine

I don't think the built-in mechanism to manage resources lends itself
to such scenarios, because satellites assemblies have to follow
specific naming conventions to be properly recognized. That said, you
can still manually detect the current culture settings and extract
resources from whatever assembly accordingly. And that gives you extra
flexibility coz now you're responsible for managing the assembly and
you can put it wherever you want to (no need to be in those sub-folders
with culture names).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top