plug-in architecture problem

O

Oleg Yevteyev

Trying to implement a plug-in architecture and to load
my assembly in run time by calling System.Reflection.Assembly.Load method.
There are two assemblies - I'd call one "plugin" and another is "common" and
the "plugin" depends on "common".
there were two separate projects - one for each assembly, and I was able to
load "plugin" assembly without a problem.
Now, I have to use "common" classes in a different solution and I'm not
permitted to create a separate project for the common in that solution.
Instead, I just moved all the "common" files into one of the existing
projects.
But when I try to System.Reflection.Assembly.Load my "plugin" dll from the
new solution - it cannot find dependant classes from - getting
"One or more of the types in the assembly unable to load." error - the
plugin is still looking for a "common.dll" file and cannot find the
appropriate dependencies in the assembly, where I have placed my "common"
files in.
What should be done to overcome that problem?
TIA.
 

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