string GetDependentUpon(string path) { var dependentFile = new DependentFile(MSBuildProject); FileProjectItem projectItem = dependentFile.GetParentFileProjectItem(path); if (projectItem != null) { return(Path.GetFileName(projectItem.Include)); } return(null); }
string GetDependentUpon(string path) { var dependentFile = new DependentFile(project); ProjectFile projectItem = dependentFile.GetParentFileProjectItem(path); if (projectItem != null) { string relativePath = GetRelativePath(projectItem.FilePath); return(Path.GetFileName(relativePath)); } return(null); }
string GetDependentUpon(string path) { var dependentFile = new DependentFile(MSBuildProject); FileProjectItem projectItem = dependentFile.GetParentFileProjectItem(path); if (projectItem != null) { return Path.GetFileName(projectItem.Include); } return null; }
void CreateDependentFile() { dependentFile = new DependentFile(project); }