This project is read-only.
1
Vote

Dynamic Load Of Assemblies

description

Hi,

Bootstrapper has several ways to define which assemblies will be loaded using Bootstrapper.Including and Bootstrapper.IncludingOnly methods.
I would like to define which assemblies will be loaded using an external file. something like:

Bootstrapper
            .IncludingOnly
            .AssemblyRange(filePath)
            .With.SimpleInjector()
            .With.ServiceLocator()
            .Start();
This way I can change the assemblies without the need to reference them in compile time.

I've created some kind of extension that reads an external file and load the dll into the AppDomain but I'm unable to get the instances. Bootstrapper raises exceptions when trying to get instance that was loaded into the AppDomain...

Any ideas ?

Thanks

comments

luisbocaletti wrote Oct 24, 2013 at 8:10 PM

Could you post the error that bootstrapper is throwing? Also if you don't mind can you include your extension code?
Thanks

Luis