serverdensity/sd-agent-windows — pull request #30 by yuriylsh (2014-09-30 17:09:12+00:00)
Title: Plugin loading: changed the way plugin assemblies are loaded.

Currently the code uses Assembly.LoadFile to load plugin dlls. LoadFile does not load files into the load-from context, and does not resolve dependencies using the load path. So if a plugin has some dependencies then the only x-copy deployment-friendly workaround it to place the dependencies into the folder where the agent executable is located ("%programfiles(x86)%\Boxed Ice\Server Density" folder by default), which is not ideal by any means.

Switching to Assembly.LoadFrom allows to just copy the assemblies plugins depends upon into the same directory where the plugins are.

Thanks,
Yuriy Lyeshchenko
Sr. Software Engineer at Onspring Technologies.