コード例 #1
0
 public ProjectItemRelationship(ProjectItem projectItem, SD.ProjectItem msbuildProjectItem)
 {
     this.ProjectItem        = projectItem;
     this.MSBuildProjectItem = msbuildProjectItem;
     this.Project            = projectItem.ContainingProject;
     GetRelationship();
 }
コード例 #2
0
        ProjectItem ConvertToProjectItem(SD.ProjectItem item)
        {
            var fileItem = item as FileProjectItem;

            if ((fileItem != null) && !fileItem.IsDependentUponAnotherFile())
            {
                return(ConvertFileToProjectItem(fileItem));
            }
            return(null);
        }
コード例 #3
0
        internal override bool IsChildItem(SD.ProjectItem msbuildProjectItem)
        {
            string directory = Path.GetDirectoryName(msbuildProjectItem.Include);

            if (directory == relativePath)
            {
                return(true);
            }
            return(false);
        }
コード例 #4
0
        ProjectItem ConvertToProjectItem(SD.ProjectItem item)
        {
            var fileItem = item as FileProjectItem;

            if (fileItem != null)
            {
                return(ConvertFileToProjectItem(fileItem));
            }
            return(null);
        }
コード例 #5
0
 void AddProjectItemToMSBuildProject(SD.ProjectItem projectItem)
 {
     projectService.AddProjectItem(MSBuildProject, projectItem);
 }
コード例 #6
0
 internal virtual ProjectItemRelationship GetRelationship(SD.ProjectItem msbuildProjectItem)
 {
     return(new ProjectItemRelationship(this, msbuildProjectItem));
 }
コード例 #7
0
        internal virtual bool IsChildItem(SD.ProjectItem msbuildProjectItem)
        {
            string directory = Path.GetDirectoryName(msbuildProjectItem.Include);

            return(IsMatchByName(directory));
        }
コード例 #8
0
        ProjectItem GetChildProjectItem(SD.ProjectItem msbuildProjectItem)
        {
            ProjectItemRelationship relationship = ProjectItem.GetRelationship(msbuildProjectItem);

            return(relationship.GetChild());
        }
コード例 #9
0
 public static bool IsSomewhereBelow(string path, ProjectItem item)
 {
     return(item.Include.StartsWith(path));
 }
コード例 #10
0
 public ProjectItemEventArgs(IProject project, ProjectItem projectItem) : base(project)
 {
     this.projectItem = projectItem;
 }