2007-05-06 Igor Zelmanovich <igorz@mainsoft.com>
[mono.git] / mcs / class / System.Web / System.Web.Configuration / CompilationConfigurationHandler.cs
index 889c70ce6e699dc5e0f6753f8c78725c57bca2f5..b3ea431fa9bfd11dd38d2357379691581ab95e17 100644 (file)
@@ -27,6 +27,7 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
+#if !NET_2_0
 using System;
 using System.Collections;
 using System.Configuration;
@@ -98,7 +99,11 @@ namespace System.Web.Configuration
                                compiler.Type = AttValue ("type", child);
                                compiler.CompilerOptions = AttValue ("compilerOptions", child, true, true);
                                compiler.WarningLevel = AttUIntValue ("warningLevel", child, 0);
+#if NET_2_0
+                               config.Compilers.Add (compiler);
+#else
                                config.Compilers [compiler.Language] = compiler;
+#endif
                        }
                }
 
@@ -193,4 +198,5 @@ namespace System.Web.Configuration
                }
        }
 }
+#endif