<DebugType>full</DebugType>\r
<Optimize>false</Optimize>\r
<OutputPath>..\..\..\..\..\managed\debug\</OutputPath>\r
- <DefineConstants>DEBUG;TRACE</DefineConstants>\r
+ <DefineConstants>TRACE;DEBUG;CLR_VERSION40</DefineConstants>\r
<ErrorReport>prompt</ErrorReport>\r
<WarningLevel>4</WarningLevel>\r
</PropertyGroup>\r
<DebugType>pdbonly</DebugType>\r
<Optimize>true</Optimize>\r
<OutputPath>..\..\..\..\..\managed\release\</OutputPath>\r
- <DefineConstants>TRACE</DefineConstants>\r
+ <DefineConstants>TRACE;CLR_VERSION40</DefineConstants>\r
<ErrorReport>prompt</ErrorReport>\r
<WarningLevel>4</WarningLevel>\r
</PropertyGroup>\r
cdp = CodeDomProvider.CreateProvider("f#");\r
break;\r
case ".csx":\r
+#if (CLR_VERSION40)\r
+ cdp = new Microsoft.CSharp.CSharpCodeProvider(new Dictionary<string, string> { { "CompilerVersion", "v4.0" } });\r
+#else\r
cdp = new Microsoft.CSharp.CSharpCodeProvider(new Dictionary<string, string> { { "CompilerVersion", "v3.5" } });\r
+#endif\r
break;\r
case ".vbx":\r
+#if (CLR_VERSION40)\r
+ cdp = new Microsoft.VisualBasic.VBCodeProvider(new Dictionary<string, string> { { "CompilerVersion", "v4.0" } });\r
+#else\r
cdp = new Microsoft.VisualBasic.VBCodeProvider(new Dictionary<string, string> { { "CompilerVersion", "v3.5" } });\r
+#endif\r
break;\r
case ".jsx":\r
// Have to figure out better JS support\r