コード例 #1
0
        protected static Task RestoreNuGetPackages(Solution solution)
        {
            var solutionManager = new MonoDevelopSolutionManager(solution);
            var restoreAction   = new RestoreNuGetPackagesAction(solution, solutionManager);

            return(Task.Run(() => {
                restoreAction.Execute();
            }));
        }
コード例 #2
0
 protected override void Run()
 {
     try {
         ProgressMonitorStatusMessage message = ProgressMonitorStatusMessageFactory.CreateRestoringPackagesInSolutionMessage();
         var action = new RestoreNuGetPackagesAction(GetSelectedSolution());
         PackageManagementServices.BackgroundPackageActionRunner.Run(message, action);
     } catch (Exception ex) {
         ShowStatusBarError(ex);
     }
 }
コード例 #3
0
		public static void Run (Solution solution)
		{
			try {
				ProgressMonitorStatusMessage message = ProgressMonitorStatusMessageFactory.CreateRestoringPackagesInSolutionMessage ();
				var action = new RestoreNuGetPackagesAction (solution);
				PackageManagementServices.BackgroundPackageActionRunner.Run (message, action);
			} catch (Exception ex) {
				ShowStatusBarError (ex);
			}
		}
コード例 #4
0
        static void RestorePackages(Solution solution, Action <RestoreNuGetPackagesAction> modifyRestoreAction)
        {
            Runtime.AssertMainThread();

            try {
                ProgressMonitorStatusMessage message = ProgressMonitorStatusMessageFactory.CreateRestoringPackagesInSolutionMessage();
                var action = new RestoreNuGetPackagesAction(solution);
                modifyRestoreAction(action);
                PackageManagementServices.BackgroundPackageActionRunner.Run(message, action);
            } catch (Exception ex) {
                ShowStatusBarError(ex);
            }
        }