ProcessPackageAction CreateUninstallPackageActionForSelectedProject(IPackageManagementSelectedProject selectedProject)
        {
            ProcessPackageAction action = base.CreateUninstallPackageAction(selectedProject);

            if (IsPackageInstalled(action.Project))
            {
                return(action);
            }
            return(null);
        }
        protected ProcessPackageAction CreateUninstallPackageAction(IPackageManagementSelectedProject selectedProject)
        {
            IPackageManagementProject project = selectedProject.Project;

            project.Logger = logger;

            ProcessPackageAction action = project.CreateUninstallPackageAction();

            action.Package = package;
            return(action);
        }
        public override IList <ProcessPackageAction> GetProcessPackageActionsForSelectedProjects(
            IList <IPackageManagementSelectedProject> selectedProjects)
        {
            var actions = new List <ProcessPackageAction>();

            foreach (IPackageManagementSelectedProject selectedProject in selectedProjects)
            {
                ProcessPackageAction action = CreatePackageAction(selectedProject);
                if (action != null)
                {
                    actions.Add(action);
                }
            }
            return(actions);
        }
        public virtual IList <ProcessPackageAction> GetProcessPackageActionsForSelectedProjects(
            IList <IPackageManagementSelectedProject> selectedProjects)
        {
            var actions = new List <ProcessPackageAction>();

            foreach (IPackageManagementSelectedProject selectedProject in selectedProjects)
            {
                if (selectedProject.IsSelected)
                {
                    ProcessPackageAction action = CreateInstallPackageAction(selectedProject);
                    action.AllowPrereleaseVersions = parent.IncludePrerelease;
                    actions.Add(action);
                }
            }
            return(actions);
        }