示例#1
0
 protected override void Run()
 {
     try {
         Update();
     } catch (Exception ex) {
         ProgressMonitorStatusMessage progressMessage = ProgressMonitorStatusMessageFactory.CreateUpdatingPackagesInSolutionMessage();
         PackageManagementServices.BackgroundPackageActionRunner.ShowError(progressMessage, ex);
     }
 }
示例#2
0
        void Update()
        {
            var updateAllPackages = new UpdateAllNuGetPackagesInSolution(GetSelectedSolution());
            List <IPackageAction> updateActions = updateAllPackages.CreateActions().ToList();

            ProgressMonitorStatusMessage progressMessage = ProgressMonitorStatusMessageFactory.CreateUpdatingPackagesInSolutionMessage(updateAllPackages.GetProjects());

            PackageManagementServices.BackgroundPackageActionRunner.Run(progressMessage, updateActions);
        }
示例#3
0
        protected override void Run()
        {
            ProgressMonitorStatusMessage progressMessage = ProgressMonitorStatusMessageFactory.CreateUpdatingPackagesInSolutionMessage();

            try {
                UpdateAllPackagesInSolution updateAllPackages = CreateUpdateAllPackagesInSolution();
                List <UpdatePackageAction>  updateActions     = updateAllPackages.CreateActions().ToList();
                PackageManagementServices.BackgroundPackageActionRunner.Run(progressMessage, updateActions);
            } catch (Exception ex) {
                PackageManagementServices.BackgroundPackageActionRunner.ShowError(progressMessage, ex);
            }
        }
 protected override void Run()
 {
     try {
         UpdateAllPackagesInSolution  updateAllPackages = CreateUpdateAllPackagesInSolution();
         ProgressMonitorStatusMessage progressMessage   = ProgressMonitorStatusMessageFactory.CreateUpdatingPackagesInSolutionMessage(updateAllPackages.Projects);
         RestoreBeforeUpdateAction.Restore(updateAllPackages.Projects, () => {
             Runtime.RunInMainThread(() => {
                 Update(updateAllPackages, progressMessage);
             }).Wait();
         });
     } catch (Exception ex) {
         ProgressMonitorStatusMessage progressMessage = ProgressMonitorStatusMessageFactory.CreateUpdatingPackagesInSolutionMessage();
         PackageManagementServices.BackgroundPackageActionRunner.ShowError(progressMessage, ex);
     }
 }