コード例 #1
0
        public Project CreateSingleFileProject(string sourceFile)
        {
            ProjectCreateInformation info = new ProjectCreateInformation();
            info.ProjectName = Path.GetFileNameWithoutExtension(sourceFile);
            info.SolutionPath = Path.GetDirectoryName(sourceFile);
            info.ProjectBasePath = Path.GetDirectoryName(sourceFile);

            Project project = new PhpProject(info, null, PhpLanguageBinding.PhpLanguage);
            project.Files.Add(new ProjectFile(sourceFile));

            return project;
        }
コード例 #2
0
        public Project CreateSingleFileProject(string sourceFile)
        {
            ProjectCreateInformation info = new ProjectCreateInformation();

            info.ProjectName     = Path.GetFileNameWithoutExtension(sourceFile);
            info.SolutionPath    = Path.GetDirectoryName(sourceFile);
            info.ProjectBasePath = Path.GetDirectoryName(sourceFile);

            Project project = new PhpProject(info, null, PhpLanguageBinding.PhpLanguage);

            project.Files.Add(new ProjectFile(sourceFile));

            return(project);
        }