protected CleanCommandBase(IProjectFolderSerivce projectFolderService, IErrorHandlerService errorHandlerService, IVsOutputPaneService vsOutputPaneService, OleMenuCommandService commandService, Guid guidPackageCmdSet, int commandId) { if (commandService == null) { throw new ArgumentNullException(nameof(commandService)); } this.projectFolderService = projectFolderService ?? throw new ArgumentNullException(nameof(projectFolderService)); this.errorHandlerService = errorHandlerService ?? throw new ArgumentNullException(nameof(errorHandlerService)); this.vsOutputPaneService = vsOutputPaneService ?? throw new ArgumentNullException(nameof(vsOutputPaneService)); var menuCommandID = new CommandID(guidPackageCmdSet, commandId); var menuItem = new MenuCommand(this.Execute, menuCommandID); commandService.AddCommand(menuItem); }
public CleanSolutionWithoutPackagesCommand(IProjectFolderSerivce projectFolderService, IErrorHandlerService errorHandlerService, IVsOutputPaneService vsOutputPaneService, OleMenuCommandService commandService) : base(projectFolderService, errorHandlerService, vsOutputPaneService, commandService, deletePackages: false, PackageGuids.guidCleanSolutionWithoutPackagesCommandPackageCmdSet, PackageIds.CleanSolutionWithoutPackagesCommandId) { }
public ErrorHandlerService(IVsOutputPaneService vsOutputPaneService) { this.vsOutputPaneService = vsOutputPaneService ?? throw new ArgumentNullException(nameof(vsOutputPaneService)); }
public CleanProjectCommand(IProjectFolderSerivce projectFolderService, IErrorHandlerService errorHandlerService, IVsOutputPaneService vsOutputPaneService, OleMenuCommandService commandService) : base(projectFolderService, errorHandlerService, vsOutputPaneService, commandService, PackageGuids.guidCleanProjectCommandPackageCmdSet, PackageIds.CleanProjectCommandId) { }