public DotNetProject FindProject(string name)
 {
     foreach (Project project in projectService.GetOpenProjects())
     {
         if (IsProjectNameMatch(project, name))
         {
             return(project as DotNetProject);
         }
     }
     return(null);
 }
예제 #2
0
        public void RegisterConsole(IScriptingConsole console)
        {
            packageManagementConsole = console;

            IdeApp.Workspace.SolutionLoaded   += SolutionLoaded;
            IdeApp.Workspace.SolutionUnloaded += SolutionUnloaded;
            projects = new ObservableCollection <Project> (projectService.GetOpenProjects());

            CreateCommands();
            UpdatePackageSourceViewModels();
            ReceiveNotificationsWhenPackageSourcesUpdated();
            UpdateDefaultProject();
            InitConsoleHost();
        }
예제 #3
0
 IEnumerable <MD.DotNetProject> GetOpenMSBuildProjects()
 {
     return(projectService.GetOpenProjects());
 }
 public IEnumerable <Project> GetDotNetProjects()
 {
     return(projectService.GetOpenProjects());
 }