protected override void Initialize() { base.Initialize(); var repository = (IVsExtensionRepository)GetService(typeof(SVsExtensionRepository)); var manager = (IVsExtensionManager)GetService(typeof(SVsExtensionManager)); var mcs = GetService(typeof(IMenuCommandService)) as OleMenuCommandService; var outWindow = GetService(typeof(SVsOutputWindow)) as IVsOutputWindow; if (repository == null || manager == null || mcs == null || outWindow == null) { return; } // Get a unique output window pane var paneGuid = new Guid("233a6542-251a-42b1-b435-c80a3d70340e"); outWindow.CreatePane(ref paneGuid, "Bulk Extension Manager", 1, 1); IVsOutputWindowPane customOutputPane; outWindow.GetPane(ref paneGuid, out customOutputPane); // Setup the menu buttons Commands commands = new Commands(repository, manager, mcs, customOutputPane); commands.Initialize(); }