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
Post a Comment