提交 889cadb8 authored 作者: Jeff Lenk's avatar Jeff Lenk

Fix mod_managed dynamic compile for V4 Framework

上级 638c28d0
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
<DebugType>full</DebugType> <DebugType>full</DebugType>
<Optimize>false</Optimize> <Optimize>false</Optimize>
<OutputPath>..\..\..\..\..\managed\debug\</OutputPath> <OutputPath>..\..\..\..\..\managed\debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants> <DefineConstants>TRACE;DEBUG;CLR_VERSION40</DefineConstants>
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
</PropertyGroup> </PropertyGroup>
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
<DebugType>pdbonly</DebugType> <DebugType>pdbonly</DebugType>
<Optimize>true</Optimize> <Optimize>true</Optimize>
<OutputPath>..\..\..\..\..\managed\release\</OutputPath> <OutputPath>..\..\..\..\..\managed\release\</OutputPath>
<DefineConstants>TRACE</DefineConstants> <DefineConstants>TRACE;CLR_VERSION40</DefineConstants>
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
</PropertyGroup> </PropertyGroup>
......
...@@ -110,10 +110,18 @@ namespace FreeSWITCH { ...@@ -110,10 +110,18 @@ namespace FreeSWITCH {
cdp = CodeDomProvider.CreateProvider("f#"); cdp = CodeDomProvider.CreateProvider("f#");
break; break;
case ".csx": case ".csx":
#if (CLR_VERSION40)
cdp = new Microsoft.CSharp.CSharpCodeProvider(new Dictionary<string, string> { { "CompilerVersion", "v4.0" } });
#else
cdp = new Microsoft.CSharp.CSharpCodeProvider(new Dictionary<string, string> { { "CompilerVersion", "v3.5" } }); cdp = new Microsoft.CSharp.CSharpCodeProvider(new Dictionary<string, string> { { "CompilerVersion", "v3.5" } });
#endif
break; break;
case ".vbx": case ".vbx":
#if (CLR_VERSION40)
cdp = new Microsoft.VisualBasic.VBCodeProvider(new Dictionary<string, string> { { "CompilerVersion", "v4.0" } });
#else
cdp = new Microsoft.VisualBasic.VBCodeProvider(new Dictionary<string, string> { { "CompilerVersion", "v3.5" } }); cdp = new Microsoft.VisualBasic.VBCodeProvider(new Dictionary<string, string> { { "CompilerVersion", "v3.5" } });
#endif
break; break;
case ".jsx": case ".jsx":
// Have to figure out better JS support // Have to figure out better JS support
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论