ReinstallPackageAction CreateReinstallPackageAction (IPackageManagementProject project, PackageReference packageReference) { ReinstallPackageAction action = project.CreateReinstallPackageAction (); action.PackageId = packageReference.Id; action.PackageVersion = packageReference.Version; return action; }
ReinstallPackageAction CreateReinstallPackageAction(IPackageManagementProject project, PackageReference packageReference) { ReinstallPackageAction action = project.CreateReinstallPackageAction(); action.PackageId = packageReference.Id; action.PackageVersion = packageReference.Version; return(action); }
ReinstallPackageAction CreateReinstallPackageAction(IPackageManagementProject project, IPackage package) { ReinstallPackageAction action = project.CreateReinstallPackageAction(); action.PackageId = package.Id; action.PackageVersion = package.Version; action.UpdateDependencies = UpdateDependencies; action.AllowPrereleaseVersions = AllowPreleaseVersions || !package.IsReleaseVersion(); action.PackageScriptRunner = this; return(action); }
public void Run(PackageReferenceNode packageReferenceNode, ProgressMonitorStatusMessage progressMessage) { try { IPackageManagementProject project = solution.GetProject(packageReferenceNode.Project); ReinstallPackageAction action = project.CreateReinstallPackageAction(); action.PackageId = packageReferenceNode.Id; action.PackageVersion = packageReferenceNode.Version; runner.Run(progressMessage, action); } catch (Exception ex) { runner.ShowError(progressMessage, ex); } }
ReinstallPackageAction CreateReinstallPackageAction(IPackageManagementProject project, IPackage package) { ReinstallPackageAction action = project.CreateReinstallPackageAction(); action.PackageId = package.Id; action.PackageVersion = package.Version; action.UpdateDependencies = UpdateDependencies; action.AllowPrereleaseVersions = AllowPreleaseVersions || !package.IsReleaseVersion(); action.PackageScriptRunner = this; return action; }