loading settelite assemblies?

R

rizwanahmed24

Hi

i have project (say project A) that contains extra resource files for
different languages. i m using the assembly of this project in to
another project (say project B). the assembly of project A contains
the default resource files but doesnt contain resource files for other
languages. I place the assembly of project A into plugins folder of
project B so that i can load the assembly from there. where should i
place the assemby containing resource files for other languages and
how can i load it in project B?

Regards
Rizwan
 
P

pedrito

You place the satellite assemblies in sub-directories of the directory with
the DLL. So if you have C:\myapp\plugins and your DLL is in
C:\myapp\plugins, then the satellite assemblies would go in subdirectories
under plugins, one directory for each language/culture (or just language, I
guess, though I haven't tried that.)

So for Spain Spanish, for example, you'd have: c:\myapp\plugins\es-ES\ and
your satellite assembly would go in there.

Alternatively, you can handle the AppDomain.AssemblyResolve (or maybe it's
AppDomain.ResourceResolve) event and simply tell it where you want it to
find the resource files when it goes looking for them.
 

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