public void InitializeProjects(List <IVsProject> upgradeProjects)
        {
            ProjectConverter.TryUpgrade(upgradeProjects);

            List <IVsProject> projects = DTEUtil.GetProjects();

            List <IVsProject> sliceProjects = new List <IVsProject>();

            foreach (IVsProject project in projects)
            {
                IceBuilderProjectType projectType = DTEUtil.IsIceBuilderEnabled(project);

                if (projectType != IceBuilderProjectType.None)
                {
                    if (projectType == IceBuilderProjectType.CppProjectType)
                    {
                        VCUtil.SetupSliceFilter(DTEUtil.GetProject(project as IVsHierarchy));
                    }
                    if (AutoBuilding)
                    {
                        sliceProjects.Add(project);
                    }
                    else
                    {
                        FileTracker.Add(project, projectType);
                    }
                }
            }

            if (AutoBuilding)
            {
                QueueProjectsForBuilding(sliceProjects);
            }
        }
Example #2
0
        private void OKButton_Clicked(object sender, EventArgs e)
        {
            Hide();
            UpgradeDialogProgress proggressDialog = new UpgradeDialogProgress(Projects.Count);

            ProjectConverter.Upgrade(Projects, proggressDialog);
            proggressDialog.StartPosition = FormStartPosition.CenterParent;
            proggressDialog.ShowDialog(this);
            Close();
        }
        private void OKButton_Clicked(object sender, EventArgs e)
        {
            List <IVsProject>     selected        = SelectedProjets;
            UpgradeDialogProgress proggressDialog = new UpgradeDialogProgress(selected.Count);

            ProjectConverter.Upgrade(selected, proggressDialog);
            proggressDialog.StartPosition = FormStartPosition.CenterParent;
            proggressDialog.ShowDialog(this);
            Close();
        }
Example #4
0
 public void InitializeProjects(List <IVsProject> projects)
 {
     try
     {
         NuGet.OnNugetBatchEnd(null);
         ProjectConverter.TryUpgrade(projects);
         projects = DTEUtil.GetProjects();
         foreach (IVsProject project in projects)
         {
             InitializeProject(project);
         }
     }
     finally
     {
         NuGet.OnNugetBatchEnd(PackageInstalled);
     }
 }
 public void InitializeProjects(List <EnvDTE.Project> projects)
 {
     ProjectConverter.TryUpgrade(projects);
     projects = DTEUtil.GetProjects(DTE.Solution);
     foreach (EnvDTE.Project project in projects)
     {
         List <EnvDTE.Project> build = new List <EnvDTE.Project>();
         if (DTEUtil.IsIceBuilderEnabled(project))
         {
             if (DTEUtil.IsCppProject(project))
             {
                 VCUtil.SetupSliceFilter(project);
             }
             FileTracker.Add(project);
             build.Add(project);
         }
         QueueProjectsForBuilding(build);
     }
 }