Ejemplo n.º 1
0
        public IPackageManager get_package_manager(string localPackageDirectory, IConfigurationSettings configuration)
        {
            var nugetLogger = new ServiceNugetLogger();

            NuGet.IFileSystem    nugetPackagesFileSystem = get_nuget_file_system(nugetLogger, localPackageDirectory);
            IPackagePathResolver pathResolver            = get_path_resolver(nugetPackagesFileSystem);
            var packageManager = new PackageManager(get_remote_repository(configuration, nugetLogger), pathResolver, nugetPackagesFileSystem, get_local_repository(pathResolver, nugetPackagesFileSystem))
            {
                DependencyVersion = DependencyVersion.Highest,
            };

            return(packageManager);
        }
Ejemplo n.º 2
0
        public IPackageManager get_package_manager(string localPackageDirectory, IConfigurationSettings configuration)
        {
            var nugetLogger = new ServiceNugetLogger();

            NuGet.IFileSystem nugetPackagesFileSystem = get_nuget_file_system(nugetLogger, localPackageDirectory);
            IPackagePathResolver pathResolver = get_path_resolver(nugetPackagesFileSystem);
            var packageManager = new PackageManager(get_remote_repository(configuration, nugetLogger), pathResolver, nugetPackagesFileSystem, get_local_repository(pathResolver, nugetPackagesFileSystem))
            {
                DependencyVersion = DependencyVersion.Highest,
            };

            return packageManager;
        }