I'm making a new project following onin architecture.

I have a separate project called "bootstrapper" that contain IOC and WebActivator.. My problem is that class that contain WebActivator not even loaded in debug ! May be i'm missing something ?
[assembly: WebActivatorEx.PreApplicationStartMethod(typeof(IocConfig), "RegisterDependencies")]
public class IocConfig
{
public static void RegisterDependencies()
{
//..........
}
}
Your
Onion.Bootstrapperproject corresponds to the outermost layer of your Onion Architecture. It's the only projects that references all the others.Using
WebActivatorallows you to avoid having to referenceOnion.BootstrapperinWebApplication. TheRegisterDependenciesmethod will be called on pre-application start.To make this works, the only thing you need to do is to make sure the
Onion.Bootstrapperdll is pushed toWebApplication/bin directory ( (easy to set up using a post build action or OutputTo nugget package)).