private static void ProcessProjectReferenceItems(XmlNodeList nodes, ProjectObject project) { foreach (XmlNode node in nodes) { string name = GetProperty(node, Constants.PROPERTY_NAME); string projectGuid = GetProperty(node, Constants.PROPERTY_PROJECT); string relativePath = GetRelativePath(node.Attributes[0]); ProjectReference projectReference = new ProjectReference { Name = name, ProjectGuid = projectGuid, RelativePath = relativePath }; project.ProjectReferences.Add(projectReference); } }
private static void ProcessProjectReferenceItems(XmlNodeList nodes, Project project) { foreach (XmlNode node in nodes){ var name = ProjectParserHelper.GetProperty(node, Constants.PROPERTY_NAME); var projectGuid = ProjectParserHelper.GetProperty(node, Constants.PROPERTY_PROJECT); if (node.Attributes != null){ var relativePath = GetRelativePath(node.Attributes[0]); var projectReference = new ProjectReference{ Name = name, ProjectGuid = projectGuid, RelativePath = relativePath }; project.ProjectReferences.Add(projectReference); } } }