bool HasDirectoryInPath(string path) { string relativePath = project.GetRelativePath(path); string directoryName = Path.GetDirectoryName(relativePath); return(!String.IsNullOrEmpty(directoryName)); }
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)); }