reflection.net: bucket dependencies?


i try supplement an addons component windows.net concentration controlling reflection; nonetheless fails there addon dependencie.


addon category have exercise an interface 'iaddon' have an lifeless constructor.

main way bucket addon controlling reflection:



assembly public = assembly.loadfile(@"c:\temp\testaddon\addon.dll");
type t = assembly.gettype("test.myaddon");
constructorinfo ctor = t.getconstructor(new type[] { });
iaddon addon= (iaddon) ctor.invoke(new object[] { });
addon.startaddon();


it works good addon dependencie.
but addon anxiety an another dll (c:\temp\testaddon\mytools.dll) saved circuitously addon disk, fails:

system.io.filenotfoundexception: bucket record public 'mytools.dll' the dependencies.



i wants duplicate addons dll circuitously executable, i tell .net runtime hunt "c:\temp\testaddon\" any dependency?



note adding



assembly public = assembly.loadfile(@"c:\temp\testaddon\mytools.dll");


do change anything.



Comments

Popular posts from this blog

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?

grails record upload problems

how i emanate permitted url asp.net mvc?