Exemplo n.º 1
0
        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)
 {
 }
Exemplo n.º 3
0
 public ErrorHandlerService(IVsOutputPaneService vsOutputPaneService)
 {
     this.vsOutputPaneService = vsOutputPaneService ?? throw new ArgumentNullException(nameof(vsOutputPaneService));
 }
Exemplo n.º 4
0
 public CleanProjectCommand(IProjectFolderSerivce projectFolderService, IErrorHandlerService errorHandlerService, IVsOutputPaneService vsOutputPaneService, OleMenuCommandService commandService) :
     base(projectFolderService, errorHandlerService, vsOutputPaneService, commandService, PackageGuids.guidCleanProjectCommandPackageCmdSet, PackageIds.CleanProjectCommandId)
 {
 }