public ProjectItemRelationship(ProjectItem projectItem, SD.ProjectItem msbuildProjectItem) { this.ProjectItem = projectItem; this.MSBuildProjectItem = msbuildProjectItem; this.Project = projectItem.ContainingProject; GetRelationship(); }
ProjectItem ConvertToProjectItem(SD.ProjectItem item) { var fileItem = item as FileProjectItem; if ((fileItem != null) && !fileItem.IsDependentUponAnotherFile()) { return(ConvertFileToProjectItem(fileItem)); } return(null); }
internal override bool IsChildItem(SD.ProjectItem msbuildProjectItem) { string directory = Path.GetDirectoryName(msbuildProjectItem.Include); if (directory == relativePath) { return(true); } return(false); }
ProjectItem ConvertToProjectItem(SD.ProjectItem item) { var fileItem = item as FileProjectItem; if (fileItem != null) { return(ConvertFileToProjectItem(fileItem)); } return(null); }
void AddProjectItemToMSBuildProject(SD.ProjectItem projectItem) { projectService.AddProjectItem(MSBuildProject, projectItem); }
internal virtual ProjectItemRelationship GetRelationship(SD.ProjectItem msbuildProjectItem) { return(new ProjectItemRelationship(this, msbuildProjectItem)); }
internal virtual bool IsChildItem(SD.ProjectItem msbuildProjectItem) { string directory = Path.GetDirectoryName(msbuildProjectItem.Include); return(IsMatchByName(directory)); }
ProjectItem GetChildProjectItem(SD.ProjectItem msbuildProjectItem) { ProjectItemRelationship relationship = ProjectItem.GetRelationship(msbuildProjectItem); return(relationship.GetChild()); }
public static bool IsSomewhereBelow(string path, ProjectItem item) { return(item.Include.StartsWith(path)); }
public ProjectItemEventArgs(IProject project, ProjectItem projectItem) : base(project) { this.projectItem = projectItem; }