void WorkspaceItemUnloading(object sender, ItemUnloadingEventArgs e) { try { e.Cancel = !PendingPackageActionsHandler.OnSolutionClosing(); } catch (Exception ex) { LoggingService.LogError("Error on unloading workspace item.", ex); } }
void WorkspaceItemUnloading(object sender, ItemUnloadingEventArgs e) { try { if (PackageManagementServices.BackgroundPackageActionRunner.IsRunning) { MessageService.ShowMessage(GettextCatalog.GetString("Unable to close the solution when NuGet packages are being processed.")); e.Cancel = true; } } catch (Exception ex) { LoggingService.LogError("Error on unloading workspace item.", ex); } }
void IdeAppWorkspaceItemUnloading (object sender, ItemUnloadingEventArgs args) { if (IsBuilding (args.Item)) CurrentBuildOperation.Cancel (); if (IsRunning (args.Item)) { if (MessageService.Confirm (GettextCatalog.GetString ( "The project '{0}' is currently running and will have to be stopped. Do you want to continue closing it?", currentRunOperationOwner.Name), new AlertButton (GettextCatalog.GetString ("Close Project")))) { CurrentRunOperation.Cancel (); } else args.Cancel = true; } }
void WorkspaceItemUnloading (object sender, ItemUnloadingEventArgs e) { try { if (PackageManagementServices.BackgroundPackageActionRunner.IsRunning) { MessageService.ShowMessage (GettextCatalog.GetString ("Unable to close the solution when NuGet packages are being processed.")); e.Cancel = true; } } catch (Exception ex) { LoggingService.LogError ("Error on unloading workspace item.", ex); } }