예제 #1
0
        bool HasDirectoryInPath(string path)
        {
            string relativePath  = project.GetRelativePath(path);
            string directoryName = Path.GetDirectoryName(relativePath);

            return(!String.IsNullOrEmpty(directoryName));
        }
예제 #2
0
 string GetProjectItemRelativePathToProject()
 {
     return(containingProject.GetRelativePath(projectItem.FileName));
 }
 public static DirectoryProjectItem CreateDirectoryProjectItemFromFullPath(Project project, string directory)
 {
     string relativePath = project.GetRelativePath(directory);
     return new DirectoryProjectItem(project, relativePath);
 }
        public static DirectoryProjectItem CreateDirectoryProjectItemFromFullPath(Project project, string directory)
        {
            string relativePath = project.GetRelativePath(directory);

            return(new DirectoryProjectItem(project, relativePath));
        }