Ejemplo n.º 1
0
        public void AddPackage()
        {
            var runner = new AddPackagesDialogRunner();

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

            runner.RunToAddPackageDependencies();
            if (runner.PackagesToAdd.Any())
            {
                AddPackagesToProject(project, runner.PackagesToAdd.ToList());
            }
        }
Ejemplo n.º 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());
            }
        }