protected UpdatePackageAction2 CreateDefaultUpdatePackageAction(IPackageManagementProject2 project) { UpdatePackageAction2 action = project.CreateUpdatePackageAction(); SetUpdatePackageActionProperties(action); return(action); }
UpdatePackageAction2 CreateAction(IPackageManagementProject2 project, IPackage package) { UpdatePackageAction2 action = CreateDefaultUpdatePackageAction(project); action.PackageId = package.Id; return(action); }
void SetUpdatePackageActionProperties(UpdatePackageAction2 action) { //action.PackageScriptRunner = PackageScriptRunner; action.UpdateDependencies = UpdateDependencies; action.UpdateIfPackageDoesNotExistInProject = false; action.AllowPrereleaseVersions = AllowPrereleaseVersions; }
UpdatePackageAction2 CreateUpdatePackageAction(IPackageManagementProject2 project) { UpdatePackageAction2 action = CreateDefaultUpdatePackageAction(project); action.PackageId = packageReference.Id; action.PackageVersion = packageReference.Version; return(action); }
public void UpdatePackage (IPackage package, UpdatePackageAction2 updateAction) { RunPackageOperations (updateAction.Operations); UpdatePackageReference (package, updateAction); }
public void UpdatePackage (IPackage package, UpdatePackageAction2 updateAction) { packageManager.UpdatePackage (package, updateAction); }
public void UpdatePackage(IPackage package, UpdatePackageAction2 updateAction) { RunPackageOperations(updateAction.Operations); UpdatePackageReference(package, updateAction); }
public void UpdatePackage(IPackage package, UpdatePackageAction2 updateAction) { packageManager.UpdatePackage(package, updateAction); }