Ejemplo n.º 1
0
		void UninstallPackage ()
		{
			UninstallPackageAction action = Project.CreateUninstallPackageAction ();
			action.Package = Package;
			action.ForceRemove = true;
			action.Execute ();
		}
 void UninstallPackages()
 {
     foreach (IPackage package in projectPackages)
     {
         var uninstallAction = new UninstallPackageAction(project, packageManagementEvents)
         {
             ForceRemove             = true,
             Package                 = package,
             RemoveDependencies      = false,
             AllowPrereleaseVersions = false
         };
         uninstallAction.Execute();
     }
 }
		void UninstallPackages ()
		{
			foreach (IPackage package in projectPackages) {
				var uninstallAction = new UninstallPackageAction (project, packageManagementEvents) {
					ForceRemove = true,
					Package = package,
					RemoveDependencies = false,
					AllowPrereleaseVersions = false
				};
				uninstallAction.Execute ();
			}
		}