Referencing project is just a way to accomplish that. You can also use post build event or your build process can choose how to configure the application by dynamically select the assembly that contain IWindsorInstaller.
With the proposed feature all that solutions are viable. On Tue, Mar 23, 2010 at 10:57 PM, SimoneB <[email protected]> wrote: > Gianmarco, don't you still have to reference the project containing > the installer if you want its assembly in your app execution folder so > that windsor can pick it up? > > On Mar 22, 10:14 pm, Gian Marco Gherardi > <[email protected]> wrote: > > To make complex component registration i often use a class that > inplements > > IWindsorInstaller. > > However this can cause monolithic compilations, for example: > > > > - App.exe > > - References > > - CustomInstaller.dll > > - class Program > > - Ioc = new WindsorContainer(); > > - Ioc.Install(new CustomInstaller()); > > - CustomInstaller.dll > > - References > > - ExternalLib.dll > > - class CustomInstaller : IWindsorInstaller > > > > The monolitic compilation is caused by: > > App.exe =depends on=> CustomInstaller.dll =depends on=> ExternalLib.dll > > > > To break monolithic compilation i do the following trick > > > > - App.config > > - <component id="installer" > service="Castle.Windsor.IWindsorInstaller, > > Castle.Windsor" type="CustomInstaller.CustomInstaller, > CustomInstaller" /> > > - class Program > > - Ioc = new WindsorContainer(new XmlInterpreter()); > > - Ioc.Install(Ioc.ResolveAll<IWindsorInstaller>()); > > > > It would be nice to have this trick done automatically by > WindsorContainer > > > > -- > > Gian Marco Gherardi > > -- > You received this message because you are subscribed to the Google Groups > "Castle Project Development List" group. > To post to this group, send email to [email protected] > . > To unsubscribe from this group, send email to > [email protected]<castle-project-devel%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/castle-project-devel?hl=en. > > -- Gian Marco Gherardi -- You received this message because you are subscribed to the Google Groups "Castle Project Development List" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/castle-project-devel?hl=en.
