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);
        }
コード例 #3
0
        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);
        }
コード例 #4
0
        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);
            }
        }
コード例 #5
0
 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;
 }