Fix mod_managed dynamic compile for V4 Framework
This commit is contained in:
parent
638c28d074
commit
889cadb8aa
|
@ -25,7 +25,7 @@
|
|||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>..\..\..\..\..\managed\debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<DefineConstants>TRACE;DEBUG;CLR_VERSION40</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
|
@ -33,7 +33,7 @@
|
|||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>..\..\..\..\..\managed\release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<DefineConstants>TRACE;CLR_VERSION40</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
|
|
|
@ -110,10 +110,18 @@ namespace FreeSWITCH {
|
|||
cdp = CodeDomProvider.CreateProvider("f#");
|
||||
break;
|
||||
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" } });
|
||||
#endif
|
||||
break;
|
||||
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" } });
|
||||
#endif
|
||||
break;
|
||||
case ".jsx":
|
||||
// Have to figure out better JS support
|
||||
|
|
Loading…
Reference in New Issue