示例#1
0
        internal void LoadParentReference(PomElement rootElement, IProject project)
        {
            var parentElement = rootElement.SingleOrNull("parent");

            if (parentElement == null)
            {
                project.Parent = null;
            }
            else
            {
                var parentReference = _dataFactory.CreateParentReference();
                LoadProjectReference(parentElement, parentReference);
                parentReference.RelativePath = parentElement.ReadElementValueOrNull("relativePath");
                project.Parent = parentReference;
            }
        }