Example #1
0
        public static void SetReferences(this ProjectDOM.Node parent, string jointCfg, string propertyName, params ProjectDOM.Node[] children)
        {
            var ids = children
                      .Select(item => item.Identifier)
                      .ToArray();

            var props = parent.GetPropertiesForConfiguration(jointCfg.Split('.'));

            props.SetReferenceIds("Value1", ids);
        }
Example #2
0
        public static IEnumerable <ProjectDOM.Node> GetReferences(this ProjectDOM.Pipeline pipeline, ProjectDOM.Node parent, string jointCfg, string propertyName)
        {
            var ids = parent.GetReferenceIds(jointCfg, propertyName);

            return(ids.Select(item => pipeline.GetNode(item)));
        }
Example #3
0
        public static IEnumerable <Guid> GetReferenceIds(this ProjectDOM.Node parent, string jointCfg, string propertyName)
        {
            var props = parent.GetPropertiesForConfiguration(jointCfg.Split('.'));

            return(props.GetReferenceIds(propertyName));
        }