We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91f0a31 commit 98d275bCopy full SHA for 98d275b
Rubberduck.Main/Root/RubberduckIoCInstaller.cs
@@ -520,7 +520,8 @@ private Type[] ToolsMenuItems()
520
521
private static void RegisterCodeExplorerViewModelWithCodeExplorerCommands(IWindsorContainer container)
522
{
523
- var codeExplorerCommands = Assembly.GetExecutingAssembly().GetTypes()
+ // Assumption: All Commands are defined in the same assembly as CommandBase
524
+ var codeExplorerCommands = Assembly.GetAssembly(typeof(CommandBase)).GetTypes()
525
.Where(type => type.IsClass && type.Namespace != null &&
526
type.CustomAttributes.Any(a => a.AttributeType == typeof(CodeExplorerCommandAttribute)));
527
container.Register(Component.For<CodeExplorerViewModel>()
0 commit comments