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; }
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); }