EventRaisingAppender requires .NET 3.5
diff --git a/tests/src/Appender/EventRaisingAppender.cs b/tests/src/Appender/EventRaisingAppender.cs
index 517b6bd..6716889 100644
--- a/tests/src/Appender/EventRaisingAppender.cs
+++ b/tests/src/Appender/EventRaisingAppender.cs
@@ -1,4 +1,26 @@
-using System;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
+#if !NET_2_0 && !MONO_2_0
+using System;
 using System.Collections.Generic;
 using System.Linq;
 using System.Text;
@@ -56,3 +78,4 @@
         }
     }
 }
+#endif
\ No newline at end of file
diff --git a/tests/src/Appender/RecursiveLoggingTest.cs b/tests/src/Appender/RecursiveLoggingTest.cs
index 4b9aeb2..191ddf6 100644
--- a/tests/src/Appender/RecursiveLoggingTest.cs
+++ b/tests/src/Appender/RecursiveLoggingTest.cs
@@ -19,6 +19,7 @@
  *
 */
 
+#if !NET_2_0 && !MONO_2_0
 using System;
 using System.Data;
 using System.Xml;
@@ -82,3 +83,4 @@
 
     }
 }
+#endif
\ No newline at end of file