Пример #1
0
        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);
        }
Пример #3
0
 string GetDependentUpon(string path)
 {
     var dependentFile = new DependentFile(MSBuildProject);
     FileProjectItem projectItem = dependentFile.GetParentFileProjectItem(path);
     if (projectItem != null) {
         return Path.GetFileName(projectItem.Include);
     }
     return null;
 }
Пример #4
0
 void CreateDependentFile()
 {
     dependentFile = new DependentFile(project);
 }