public void UninstallPackage(IPackage package, UninstallPackageAction uninstallAction)
		{
			PackagePassedToUninstallPackage = package;
			ForceRemovePassedToUninstallPackage = uninstallAction.ForceRemove;
			RemoveDependenciesPassedToUninstallPackage = uninstallAction.RemoveDependencies;
			IsRefreshProjectBrowserCalledWhenUninstallPackageCalled = FakeProjectService.IsRefreshProjectBrowserCalled;
		}
		void CreateAction()
		{
			fakePackageManagementEvents = new FakePackageManagementEvents();
			fakeProject = new FakePackageManagementProject();
			action = new UninstallPackageAction(fakeProject, fakePackageManagementEvents);
			uninstallPackageHelper = new UninstallPackageHelper(action);
		}
Example #3
0
        void UninstallPackage()
        {
            UninstallPackageAction action = Project.CreateUninstallPackageAction();

            action.Package            = Package;
            action.ForceRemove        = true;
            action.RemoveDependencies = UpdateDependencies;
            action.Execute();
        }
 void TryUninstallingPackageFromProject()
 {
     try {
         IPackageManagementProject project = GetSingleProjectSelected();
         UninstallPackageAction    action  = project.CreateUninstallPackageAction();
         action.Package = package;
         actionRunner.Run(action);
     } catch (Exception ex) {
         ReportError(ex);
         logger.LogError(ex);
     }
 }
 void TryRemovingPackage()
 {
     try {
         if (IsProjectPackage(package))
         {
             IPackageManagementProject project = GetSingleProjectSelected();
             UninstallPackageAction    action  = project.CreateUninstallPackageAction();
             action.Package = package;
             actionRunner.Run(action);
         }
         else
         {
             UninstallPackageFromSolution();
         }
     } catch (Exception ex) {
         ReportError(ex);
         logger.LogError(ex);
     }
 }
 public void UninstallPackage(IPackage package, UninstallPackageAction uninstallAction)
 {
     UninstallPackage(package, uninstallAction.ForceRemove, uninstallAction.RemoveDependencies);
 }
		public void UninstallPackage(IPackage package, UninstallPackageAction uninstallAction)
		{
			packageManager.UninstallPackage(package, uninstallAction);
		}
		public void UninstallPackage(IPackage package, UninstallPackageAction uninstallAction)
		{
			PackagePassedToUninstallPackage = package;
			ForceRemovePassedToUninstallPackage = uninstallAction.ForceRemove;
			RemoveDependenciesPassedToUninstallPackage = uninstallAction.RemoveDependencies;
		}
 public void UninstallPackage(IPackage package, UninstallPackageAction uninstallAction)
 {
     UninstallPackage(package, uninstallAction.ForceRemove, uninstallAction.RemoveDependencies);
 }
		public UninstallPackageHelper(UninstallPackageAction action)
		{
			this.action = action;
		}
Example #11
0
 public void UninstallPackage(IPackage package, UninstallPackageAction uninstallAction)
 {
     packageManager.UninstallPackage(package, uninstallAction);
 }
		public void UninstallPackage (IPackage package, UninstallPackageAction uninstallAction)
		{
			UninstallPackageAction (package, uninstallAction);
		}