Exemple #1
0
        public List <XElement> Provide(string projectPath)
        {
            var fccOptionsElements = new List <XElement>();
            var directoryPath      = projectPath;
            var ascend             = true;

            while (ascend)
            {
                ascend = AddFromDirectory(fccOptionsElements, directoryPath);
                if (ascend)
                {
                    directoryPath = fileUtil.DirectoryParentPath(directoryPath);
                    if (directoryPath == null)
                    {
                        ascend = false;
                    }
                }
            }

            fccOptionsElements.Reverse();
            return(fccOptionsElements);
        }