public void how_to_convert_MSBuild_ProjectItem_to_IItemNode() { // Say you got an MSBuild ProjectItem somehow. Microsoft.Build.Evaluation.ProjectItem item = this.MsBuildLibrary.Items.First(pi => pi.UnevaluatedInclude == "Class1.cs"); IItemNode itemNode = item.Adapt().AsItemNode(); Assert.IsNotNull(itemNode); // Now use item node to expand it (show its nested items) itemNode.Expand(); }