Exemple #1
0
        public void AddPackage()
        {
            var runner = new AddPackagesDialogRunner();

            runner.RunToAddPackageDependencies();
            AddPackages(runner.PackagesToAdd.ToList());
        }
Exemple #2
0
        public void AddPackages(DnxProject project)
        {
            var runner = new AddPackagesDialogRunner();

            runner.RunToAddPackageDependencies();
            if (runner.PackagesToAdd.Any())
            {
                AddPackagesToProject(project, runner.PackagesToAdd.ToList());
            }
        }
Exemple #3
0
        protected override void Run()
        {
            DnxProject project = GetSelectedDnxProject();

            if (project == null)
            {
                return;
            }

            var runner = new AddPackagesDialogRunner();

            runner.RunToAddPackageDependencies();
            if (runner.PackagesToAdd.Any())
            {
                AddPackagesToProject(project, runner.PackagesToAdd.ToList());
            }
        }