Esempio n. 1
0
        private void InstallPackageLocally(string packageId, string workDirectory)
        {
            var install = new InstallCommand(RepositoryFactory, SourceProvider);

            install.Arguments.Add(packageId);
            install.OutputDirectory = workDirectory;
            install.Console         = Console;
            foreach (string source in Sources)
            {
                install.Source.Add(source);
            }
            if (!string.IsNullOrEmpty(Version))
            {
                install.Version = Version;
            }

            install.ExecuteCommand();
        }
Esempio n. 2
0
        private void InstallPackageLocally(string packageId, string workDirectory)
        {
            InstallCommand install = new InstallCommand(_repositoryFactory, _sourceProvider);
            install.Arguments.Add(packageId);
            install.OutputDirectory = workDirectory;
            install.Console = this.Console;
            foreach (var source in Source)
            {
                install.Source.Add(source);
            }
            if (!string.IsNullOrEmpty(Version))
            {
                install.Version = Version;
            }

            install.ExecuteCommand();
        }