예제 #1
0
        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);
        }
예제 #3
0
 void SetUpdatePackageActionProperties(UpdatePackageAction2 action)
 {
     //action.PackageScriptRunner = PackageScriptRunner;
     action.UpdateDependencies = UpdateDependencies;
     action.UpdateIfPackageDoesNotExistInProject = false;
     action.AllowPrereleaseVersions = AllowPrereleaseVersions;
 }
		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);
		}
예제 #8
0
 public void UpdatePackage(IPackage package, UpdatePackageAction2 updateAction)
 {
     RunPackageOperations(updateAction.Operations);
     UpdatePackageReference(package, updateAction);
 }
예제 #9
0
 public void UpdatePackage(IPackage package, UpdatePackageAction2 updateAction)
 {
     packageManager.UpdatePackage(package, updateAction);
 }