Microsoft.VisualStudio.Project.ProjectNode.GetItemParentNode C# (CSharp) Method

GetItemParentNode() private method

Get the parent node of an msbuild item
private GetItemParentNode ( Microsoft.Build.Evaluation item ) : HierarchyNode
item Microsoft.Build.Evaluation msbuild item
return HierarchyNode
        private HierarchyNode GetItemParentNode(MSBuild.ProjectItem item)
        {
            HierarchyNode currentParent = this;
            string strPath = item.EvaluatedInclude;

            strPath = Path.GetDirectoryName(strPath);
            if (strPath.Length > 0)
            {
                // Use the relative to verify the folders...
                currentParent = this.CreateFolderNodes(strPath);
            }
            return currentParent;
        }
ProjectNode