ProgressMonitorStatusMessage CreateProgressMessage(List <UpdatePackageAction> updateActions)
 {
     if (updateActions.Count == 1)
     {
         return(ProgressMonitorStatusMessageFactory.CreateUpdatingSinglePackageMessage(updateActions.First().PackageId));
     }
     return(ProgressMonitorStatusMessageFactory.CreateUpdatingPackagesInProjectMessage(updateActions.Count));
 }
        void Update()
        {
            var solutionManager = PackageManagementServices.Workspace.GetSolutionManager(GetSelectedSolution());
            var project         = GetSelectedDotNetProject();
            var action          = new UpdateAllNuGetPackagesInProjectAction(solutionManager, project);

            var progressMessage = ProgressMonitorStatusMessageFactory.CreateUpdatingPackagesInProjectMessage(new DotNetProjectProxy(project));

            PackageManagementServices.BackgroundPackageActionRunner.Run(progressMessage, action);
        }
        void ShowStatusBarError(Exception ex)
        {
            ProgressMonitorStatusMessage message = ProgressMonitorStatusMessageFactory.CreateUpdatingPackagesInProjectMessage();

            PackageManagementServices.BackgroundPackageActionRunner.ShowError(message, ex);
        }