public Project CreateSingleFileProject(string file)
        {
            IDotNetLanguageBinding binding = LanguageBindingService.GetBindingPerFileName(file) as IDotNetLanguageBinding;

            if (binding != null)
            {
                ProjectCreateInformation info = new ProjectCreateInformation();
                info.ProjectName     = Path.GetFileNameWithoutExtension(file);
                info.SolutionPath    = Path.GetDirectoryName(file);
                info.ProjectBasePath = Path.GetDirectoryName(file);
                Project project = CreateProject(binding.Language, info, null);
                project.Files.Add(new ProjectFile(file));
                return(project);
            }
            return(null);
        }
        public bool CanCreateSingleFileProject(string file)
        {
            IDotNetLanguageBinding binding = LanguageBindingService.GetBindingPerFileName(file) as IDotNetLanguageBinding;

            return(binding != null);
        }