5

I have a situation where I supply a plugin DLL that uses .NET 4.0. This DLL uses ResourceManager to load strings. The strings in turn get translated and compiled into satellite assemblies.

I'm not the author of the main EXE that loads and uses my plugin DLL. It's running from another directory. Because of this, the DLL cannot find its satellite assemblies. ResourceManager wants to find them under the EXE directory rather than the directory in which the DLL sits.

How can I get the ResourceManager to load satellite assemblies relative to the DLL?

Charles
  • 2,642
  • 3
  • 33
  • 53

1 Answers1

0

If the main exe reads settings from a configuration file that you're allowed to change you could use the <codeBase> tag there as described here.

Gert Arnold
  • 105,341
  • 31
  • 202
  • 291
  • Nice idea, but doesn't fit my situation. The EXE is Explorer, and the DLL we control is a context menu shell extension. I didn't mention that before because I didn't want to deal with the crap from everyone about writing a shell extension using .NET. It wasn't my code nor my design, I've just been given the job of making it work. :-( – Charles Sep 02 '11 at 19:20