public UpdatedPackages(
            IPackageManagementProject project,
            IPackageRepository aggregateRepository)
            : this(project.GetPackages(),
				aggregateRepository)
        {
        }
Exemple #2
0
        IQueryable <IPackage> GetInstalledPackages()
        {
            IPackageManagementProject project  = GetSelectedProject();
            IQueryable <IPackage>     packages = project.GetPackages();

            return(FilterPackages(packages));
        }
Exemple #3
0
 public UpdatedPackages(
     IPackageManagementProject project,
     IPackageRepository aggregateRepository)
     : this(
         project.GetPackages(),
         aggregateRepository)
 {
 }
 public IQueryable <IPackage> GetPackages(IPackageRepository sourceRepository)
 {
     if (HasSingleProjectSelected())
     {
         IPackageManagementProject project = GetSingleProjectSelected(sourceRepository);
         return(project.GetPackages());
     }
     return(Solution.GetPackages());
 }
Exemple #5
0
        IQueryable <IPackage> GetPackagesFromSelectedProjectOrPackagesFolder()
        {
            IPackageManagementProject project = GetSelectedProject();

            if (project != null)
            {
                return(project.GetPackages());
            }
            return(ConsoleHost.Solution.GetPackages());
        }
        IQueryable <IPackage> GetPackagesFromSelectedProjectOrSolution()
        {
            IPackageManagementProject project = GetSelectedProject();

            if (project != null)
            {
                return(project.GetPackages());
            }
            return(GetSolutionPackages());
        }
        void ReinstallAllPackagesInProject(IPackageManagementProject project)
        {
            // No need to update dependencies since all packages will be reinstalled.
            IgnoreDependencies = true;

            foreach (IPackage package in project.GetPackages())
            {
                ReinstallPackageInProject(project, package);
            }
        }
Exemple #8
0
 protected override IQueryable <IPackage> GetAllPackages()
 {
     if (errorMessage != null)
     {
         ThrowOriginalExceptionWhenTryingToGetProjectManager();
     }
     if (project != null)
     {
         return(project.GetPackages());
     }
     return(solution.GetPackages());
 }
 protected override bool IsProjectEnabled(IPackageManagementProject project, IPackageFromRepository package)
 {
     return(project.GetPackages()
            .Where(p => IsPackageIdMatch(p.Id, package.Id))
            .Any(p => p.Version < package.Version));
 }
 protected override bool IsProjectEnabled(IPackageManagementProject project, IPackageFromRepository package)
 {
     return project.GetPackages()
         .Where(p => IsPackageIdMatch(p.Id, package.Id))
         .Any(p => p.Version < package.Version);
 }
 void GetProjectPackagesToReinstall()
 {
     projectPackages = project.GetPackages().ToList();
 }
        void ReinstallAllPackagesInProject(IPackageManagementProject project)
        {
            // No need to update dependencies since all packages will be reinstalled.
            IgnoreDependencies = true;

            foreach (IPackage package in project.GetPackages()) {
                ReinstallPackageInProject(project, package);
            }
        }