Has anyone had any luck populating the module catalog without adding a direct references in the shell?
This is what I have:
var loginModuleInfo = new ModuleInfo()
{
Ref = "file://ModuleA.dll",
InitializationMode = InitializationMode.WhenAvailable,
ModuleName = "ModuleA",
ModuleType = "CompositeApp.Modules.ModuleA.ModuleA, CompositeApp.Modules.ModuleA, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"
};
ModuleCatalog catalog = new ModuleCatalog();
catalog.AddModule(loginModuleInfo);
return catalog;
If I add the ModuleA reference to the shell project this works fine. But when I remove the reference I get the following error:
Failed to load type for module ModuleA. Error was: An exception occurred during a WebClient request
I thought the shell and modules were able to operate without knowledge of eachother. So I guess my question is: Do I have to add the ModuleA.dll reference to the shell for this concept to work?
Thanks
Rob