Browse Source
Used by EntityFramework to determine which migration config template to use.pull/28/head
11 changed files with 104 additions and 35 deletions
@ -1,13 +0,0 @@ |
|||||||
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
|
|
||||||
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
|
|
||||||
|
|
||||||
using System; |
|
||||||
|
|
||||||
namespace ICSharpCode.PackageManagement.EnvDTE |
|
||||||
{ |
|
||||||
public abstract class CodeModelLanguageConstants |
|
||||||
{ |
|
||||||
public const string vsCMLanguageCSharp = "{B5E9BD34-6D3E-4B5D-925E-8A43B79820B4}"; |
|
||||||
public const string vsCMLanguageVB = "{B5E9BD33-6D3E-4B5D-925E-8A43B79820B4}"; |
|
||||||
} |
|
||||||
} |
|
@ -0,0 +1,24 @@ |
|||||||
|
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
|
||||||
|
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
|
||||||
|
|
||||||
|
using System; |
||||||
|
using ICSharpCode.PackageManagement.EnvDTE; |
||||||
|
using ICSharpCode.SharpDevelop.Dom; |
||||||
|
using ICSharpCode.SharpDevelop.Project; |
||||||
|
|
||||||
|
namespace ICSharpCode.PackageManagement |
||||||
|
{ |
||||||
|
public static class IProjectContentExtensions |
||||||
|
{ |
||||||
|
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; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,9 @@ |
|||||||
|
' Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) |
||||||
|
' This code is distributed under the GNU LGPL (for details please see \doc\license.txt) |
||||||
|
|
||||||
|
Namespace EnvDTE |
||||||
|
Public MustInherit Class CodeLanguageModelConstants |
||||||
|
Public Const vsCMLanguageCSharp As String = "{B5E9BD34-6D3E-4B5D-925E-8A43B79820B4}" |
||||||
|
Public Const vsCMLanguageVB As String = "B5E9BD33-6D3E-4B5D-925E-8A43B79820B4}" |
||||||
|
End Class |
||||||
|
End Namespace |
Loading…
Reference in new issue