Is it at all possible to configure Ninject to load modules that have been declared as internal?
I have tried configuring InternalVisibleTo for the Ninject assembly, but this does not help.
I can of course make the modules public, but really they should be internal.
Internally
KernalBase.Load(IEnumerable<Assembly assemblies)uses theGetExportedTypes()which only returns public types.However, you could write your own “NinjectModule scanner”.
Then you could do the following.
This solution has not been tested though.