예제 #1
0
        private void Parse()
        {
            this.dependencies.Add(this.solutionFile);

            using (StreamReader stream = new StreamReader(IronRootDirectory.PathTo(this.solutionFile)))
            {
                Regex regex = new Regex(@"Project\([\S]+\)[\s]+=[\s]+([^$]*)", RegexOptions.IgnoreCase);
                string line;

                while ((line = stream.ReadLine()) != null)
                {
                    MatchCollection matches = regex.Matches(line);

                    if (matches.Count > 0)
                    {
                        SourcePath projFile = this.solutionFile.getNewSourcePath(matches[0].Groups[1].Value.Split("\", ".ToCharArray())[5]);
                        ////Console.WriteLine(String.Format("Found project file {0}", projFile.getFilesystemPath()));
                        VSProjectParser proj = new VSProjectParser(projFile);
                        this.dependencies.AddRange(proj.getDependencies());
                        this.outputs.AddRange(proj.getOutputs());
                    }
                }

                stream.Close();
            }
        }
예제 #2
0
        private void Parse()
        {
            this.dependencies.Add(this.solutionFile);

            using (StreamReader stream = new StreamReader(IronRootDirectory.PathTo(this.solutionFile)))
            {
                Regex  regex = new Regex(@"Project\([\S]+\)[\s]+=[\s]+([^$]*)", RegexOptions.IgnoreCase);
                string line;

                while ((line = stream.ReadLine()) != null)
                {
                    MatchCollection matches = regex.Matches(line);

                    if (matches.Count > 0)
                    {
                        SourcePath projFile = this.solutionFile.getNewSourcePath(matches[0].Groups[1].Value.Split("\", ".ToCharArray())[5]);
                        ////Console.WriteLine(String.Format("Found project file {0}", projFile.getFilesystemPath()));
                        VSProjectParser proj = new VSProjectParser(projFile);
                        this.dependencies.AddRange(proj.getDependencies());
                        this.outputs.AddRange(proj.getOutputs());
                    }
                }

                stream.Close();
            }
        }