let me try to explain my problem. I\'m currently trying to develop a small \"plugin-framework\" written in .Net (mainly for experimenting a bit). So the idea is to have a ma
The AssemblyResolve event happens when the framework tries to load an assembly, and fails.
What this means is that if it's giving you Presentation.Zune.dll in the args, that the framework can't find that assembly, and this is your chance to intercept it and do other things, like load it from a directory that the framework might not know about - eg your plugins\dependencies folder...
Off the top of my head, I'd try something like this:
Assembly CurrentDomain_AssemblyResolve(object sender, ResolveEventArgs args)
{
if( File.Exists(".\\Plugins\\"+args.Name) ) // it's a plugin
return Assembly.Load(".\\Plugins\\"+args.Name);
else if( File.Exists(".\\Plugins\\Dependencies\\"+args.Name) ) // it's a dependency OF a plugin
return Assembly.Load(".\\Plugins\\Dependencies\\"+args.Name);
else
throw new Exception();
}