コード例 #1
0
		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;
		}
コード例 #2
0
		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;
		}
コード例 #3
0
		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;
		}
コード例 #4
0
		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;
		}
コード例 #5
0
ファイル: Project.cs プロジェクト: hpsa/SharpDevelop
		string GetProjectType()
		{
			var projectType = new ProjectType(this);
			return projectType.Type;
		}
コード例 #6
0
 string GetProjectType()
 {
     return(ProjectType.GetProjectType(DotNetProject));
 }
コード例 #7
0
 string GetProjectType()
 {
     return(ProjectType.GetProjectType(MSBuildProject));
 }