Exemplo n.º 1
0
 IPackageOperationResolver CreateInstallPackageOperationResolver(InstallPackageAction2 installAction)
 {
     return(packageOperationResolverFactory.CreateInstallPackageOperationResolver(
                LocalRepository,
                SourceRepository,
                Logger,
                installAction));
 }
Exemplo n.º 2
0
        void InstallPackage()
        {
            InstallPackageAction2 action = Project.CreateInstallPackageAction();

            action.Package                 = Package;
            action.IgnoreDependencies      = !UpdateDependencies;
            action.AllowPrereleaseVersions = !Package.IsReleaseVersion();
            action.Execute();
        }
		public IPackageOperationResolver CreateInstallPackageOperationResolver (
			IPackageRepository localRepository,
			IPackageRepository sourceRepository,
			ILogger logger,
			InstallPackageAction2 installAction)
		{
			return new InstallWalker (
				localRepository,
				sourceRepository,
				installAction.ProjectTargetFramework,
				logger,
				installAction.IgnoreDependencies,
				installAction.AllowPrereleaseVersions,
				installAction.DependencyVersion);
		}
Exemplo n.º 4
0
 public IPackageOperationResolver CreateInstallPackageOperationResolver(
     IPackageRepository localRepository,
     IPackageRepository sourceRepository,
     ILogger logger,
     InstallPackageAction2 installAction)
 {
     return(new InstallWalker(
                localRepository,
                sourceRepository,
                installAction.ProjectTargetFramework,
                logger,
                installAction.IgnoreDependencies,
                installAction.AllowPrereleaseVersions,
                installAction.DependencyVersion));
 }
		public void InstallPackage (IPackage package, InstallPackageAction2 installAction)
		{
			RunPackageOperations (installAction.Operations);
			AddPackageReference (package, installAction.IgnoreDependencies, installAction.AllowPrereleaseVersions);
		}
		IPackageOperationResolver CreateInstallPackageOperationResolver (InstallPackageAction2 installAction)
		{
			return packageOperationResolverFactory.CreateInstallPackageOperationResolver (
				LocalRepository,
				SourceRepository,
				Logger,
				installAction);
		}
		public IEnumerable<PackageOperation> GetInstallPackageOperations (IPackage package, InstallPackageAction2 installAction)
		{
			IPackageOperationResolver resolver = CreateInstallPackageOperationResolver (installAction);
			return resolver.ResolveOperations (package);
		}
		public void InstallPackage (IPackage package, InstallPackageAction2 installAction)
		{
			packageManager.InstallPackage (package, installAction);
		}
		public IEnumerable<PackageOperation> GetInstallPackageOperations (IPackage package, InstallPackageAction2 installAction)
		{
			return packageManager.GetInstallPackageOperations (package, installAction);
		}
Exemplo n.º 10
0
 public void InstallPackage(IPackage package, InstallPackageAction2 installAction)
 {
     RunPackageOperations(installAction.Operations);
     AddPackageReference(package, installAction.IgnoreDependencies, installAction.AllowPrereleaseVersions);
 }
Exemplo n.º 11
0
        public IEnumerable <PackageOperation> GetInstallPackageOperations(IPackage package, InstallPackageAction2 installAction)
        {
            IPackageOperationResolver resolver = CreateInstallPackageOperationResolver(installAction);

            return(resolver.ResolveOperations(package));
        }
Exemplo n.º 12
0
 public void InstallPackage(IPackage package, InstallPackageAction2 installAction)
 {
     packageManager.InstallPackage(package, installAction);
 }
Exemplo n.º 13
0
 public IEnumerable <PackageOperation> GetInstallPackageOperations(IPackage package, InstallPackageAction2 installAction)
 {
     return(packageManager.GetInstallPackageOperations(package, installAction));
 }