DependencyViewer.Common.Loaders.SolutionLoader.CreateProjectLoaderFromProjectLine C# (CSharp) 메소드

CreateProjectLoaderFromProjectLine() 개인적인 정적인 메소드

private static CreateProjectLoaderFromProjectLine ( string line, string filebase ) : ProjectLoader
line string
filebase string
리턴 ProjectLoader
        private static ProjectLoader CreateProjectLoaderFromProjectLine(string line, string filebase)
        {
            var chunks = line.Split('"');

            // chunk 6 holds the project filename
            string projectFilename = chunks[5];
            // chunk 8 holds the project guid
            //string projectGuid = chunks[7];

            var projectFullPath = Path.Combine(filebase, projectFilename);

            if (File.Exists(projectFullPath) == false)
                throw new LoaderException("Could not find referenced project at " + projectFullPath);

            return new ProjectLoader(File.ReadAllText(projectFullPath), projectFullPath);
        }