protected static Task RestoreNuGetPackages(Solution solution) { var solutionManager = new MonoDevelopSolutionManager(solution); var restoreAction = new RestoreNuGetPackagesAction(solution, solutionManager); return(Task.Run(() => { restoreAction.Execute(); })); }
protected override void Run() { try { ProgressMonitorStatusMessage message = ProgressMonitorStatusMessageFactory.CreateRestoringPackagesInSolutionMessage(); var action = new RestoreNuGetPackagesAction(GetSelectedSolution()); PackageManagementServices.BackgroundPackageActionRunner.Run(message, action); } catch (Exception ex) { ShowStatusBarError(ex); } }
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); } }
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); } }