string GetProjectTypeGuidsBasedOnProjectFileExtension() { var projectType = new ProjectType(project); if (projectType.Type == ProjectType.CSharp) { return ProjectTypeGuids.CSharp; } else if (projectType.Type == ProjectType.VBNet) { return ProjectTypeGuids.VBNet; } return String.Empty; }
protected string GetLanguage(IProjectContent projectContent) { if (projectContent.Project != null) { var projectType = new ProjectType(projectContent.Project as MSBuildBasedProject); if (projectType.Type == ProjectType.VBNet) { return CodeModelLanguageConstants.vsCMLanguageVB; } } return CodeModelLanguageConstants.vsCMLanguageCSharp; }
public static string GetCodeModelLanguage(this IProjectContent projectContent) { if (projectContent.Project != null) { var projectType = new ProjectType(projectContent.Project as MSBuildBasedProject); if (projectType.Type == ProjectType.VBNet) { return global::EnvDTE.CodeModelLanguageConstants.vsCMLanguageVB; } } return global::EnvDTE.CodeModelLanguageConstants.vsCMLanguageCSharp; }
string GetProjectKind(Project project) { string type = new ProjectType(project).Type; if (type == ProjectType.CSharp) { return SD.ProjectTypeGuids.CSharp; } else if (type == ProjectType.VBNet) { return SD.ProjectTypeGuids.VBNet; } return String.Empty; }
string GetProjectType() { var projectType = new ProjectType(this); return projectType.Type; }
string GetProjectType() { return(ProjectType.GetProjectType(DotNetProject)); }
string GetProjectType() { return(ProjectType.GetProjectType(MSBuildProject)); }