Пример #1
0
        void GetUpdateOperationsForSolutionPackage(
            ISolutionPackageRepository solutionRepository,
            UpdatePackageAction updateAction,
            IPackageFromRepository updatePackage)
        {
            var resolverFactory = new PackageOperationsResolverFactory();
            var resolver        = resolverFactory.CreateUpdatePackageOperationResolver(
                solutionRepository.Repository,
                updatePackage.Repository,
                logger,
                updateAction);

            packageOperations = resolver.ResolveOperations(updatePackage);
        }
		public ISharpDevelopPackageManager CreatePackageManager(
			IPackageRepository sourceRepository,
			MSBuildBasedProject project)
		{
			SolutionPackageRepository solutionPackageRepository = CreateSolutionPackageRepository(project.ParentSolution);
			IProjectSystem projectSystem = CreateProjectSystem(project);
			PackageOperationsResolverFactory packageOperationResolverFactory = new PackageOperationsResolverFactory();
			
			return new SharpDevelopPackageManager(
				sourceRepository,
				projectSystem,
				solutionPackageRepository,
				packageOperationResolverFactory);
		}
Пример #3
0
        void GetInstallOperationsForSolutionPackage(
            ISolutionPackageRepository solutionRepository,
            InstallPackageAction installAction,
            IPackageFromRepository installPackage)
        {
            var resolverFactory = new PackageOperationsResolverFactory();
            var resolver        = resolverFactory.CreateInstallPackageOperationResolver(
                solutionRepository.Repository,
                installPackage.Repository,
                logger,
                installAction);

            packageOperations = resolver.ResolveOperations(installPackage);
        }
Пример #4
0
        public ISharpDevelopPackageManager CreatePackageManager(
            IPackageRepository sourceRepository,
            DotNetProject project)
        {
            SolutionPackageRepository        solutionPackageRepository       = CreateSolutionPackageRepository(project.ParentSolution);
            IProjectSystem                   projectSystem                   = CreateProjectSystem(project);
            PackageOperationsResolverFactory packageOperationResolverFactory = new PackageOperationsResolverFactory();

            return(new SharpDevelopPackageManager(
                       sourceRepository,
                       projectSystem,
                       solutionPackageRepository,
                       packageOperationResolverFactory));
        }
		ISharpDevelopPackageManager CreatePackageManager(
			IFileSystem fileSystem, 
			IPackageRepository packageRepository, 
			MSBuildBasedProject project)
		{
			DefaultPackagePathResolver pathResolver = new DefaultPackagePathResolver(fileSystem);
			ISharedPackageRepository sharedRepository = CreateSharedRepository(pathResolver, fileSystem);
			IProjectSystem projectSystem = CreateProjectSystem(project);
			PackageOperationsResolverFactory packageOperationResolverFactory = new PackageOperationsResolverFactory();
			
			return new SharpDevelopPackageManager(
				packageRepository,
				projectSystem,
				fileSystem,
				sharedRepository,
				pathResolver,
				packageOperationResolverFactory);
		}