private void CreateProjectWrapper(Project project) { if (project != null) { if (project.Kind == Constants.vsProjectKindSolutionItems || project.Kind == Constants.vsProjectKindMisc) { foreach (var projectItem in project.ProjectItems.Cast <ProjectItem>()) { CreateProjectWrapper(projectItem.SubProject); } } else { var wrapper = new ProjectWrapper(project); _projectWrappers.Add(wrapper); } } }
private void UpdateProject(ProjectWrapper project, TargetFramework framework) { project.AttemptToReload(); if (project.Project.Kind == Constants.vsProjectKindSolutionItems || project.Project.Kind == Constants.vsProjectKindMisc) { project.IsSpecialProject = true; } else { if (SetTargetFramework(project.Project, framework)) { project.Reload(); _logger.Log("Project Updated: {0}", project.Name); } lock (_nonUpdatedLocker) { _nonUpdatedProjects.Remove(project); } } }
private void CreateProjectWrapper(Project project) { if (project != null) { if (project.Kind == Constants.vsProjectKindSolutionItems || project.Kind == Constants.vsProjectKindMisc) { foreach (var projectItem in project.ProjectItems.Cast<ProjectItem>()) { CreateProjectWrapper(projectItem.SubProject); } } else { var wrapper = new ProjectWrapper(project); _projectWrappers.Add(wrapper); } } }