Author: gert
Date: 2007-06-11 13:18:04 -0400 (Mon, 11 Jun 2007)
New Revision: 79196

Added:
   trunk/gert/standalone/bug81855/
   trunk/gert/standalone/bug81855/default.build
   trunk/gert/standalone/bug81855/test.cs
Modified:
   trunk/gert/standalone/known-issues
Log:
Added test for bug #81855.


Added: trunk/gert/standalone/bug81855/default.build
===================================================================
--- trunk/gert/standalone/bug81855/default.build        2007-06-11 17:15:37 UTC 
(rev 79195)
+++ trunk/gert/standalone/bug81855/default.build        2007-06-11 17:18:04 UTC 
(rev 79196)
@@ -0,0 +1,45 @@
+<project name="bug81855" default="rebuild">
+       <target name="mono-2.0">
+               <property name="csc.defines" 
value="NET_1_0,NET_1_1,NET_2_0,ONLY_2_0,MONO" />
+       </target>
+
+       <target name="net-2.0">
+               <property name="csc.defines" 
value="NET_1_0,NET_1_1,NET_2_0,ONLY_2_0" />
+       </target>
+
+       <property name="frameworks" value="mono-2.0,net-2.0" />
+       
+       <target name="clean">
+               <delete>
+                       <fileset>
+                               <include name="out" />
+                               <include name="test.exe" />
+                       </fileset>
+               </delete>
+       </target>
+
+       <target name="build">
+               <property name="original.targetframework" 
value="${nant.settings.currentframework}" />
+
+               <foreach property="framework" item="String" in="${frameworks}" 
delim=",">
+                       <if test="${framework::exists(framework)}">
+                               <property name="nant.settings.currentframework" 
value="${framework}" />
+                               <call 
target="${nant.settings.currentframework}" />
+                               <call target="compile" />
+                               <call target="clean" />
+                       </if>
+               </foreach>
+
+               <property name="nant.settings.currentframework" 
value="${original.targetframework}" />
+       </target>
+
+       <target name="compile">
+               <csc target="exe" define="${csc.defines}" output="test.exe" 
warnaserror="true" warninglevel="4">
+                       <sources>
+                               <include name="test.cs" />
+                       </sources>
+               </csc>
+       </target>
+
+       <target name="rebuild" depends="clean, build" />
+</project>


Property changes on: trunk/gert/standalone/bug81855/default.build
___________________________________________________________________
Name: svn:eol-style
   + native

Added: trunk/gert/standalone/bug81855/test.cs
===================================================================
--- trunk/gert/standalone/bug81855/test.cs      2007-06-11 17:15:37 UTC (rev 
79195)
+++ trunk/gert/standalone/bug81855/test.cs      2007-06-11 17:18:04 UTC (rev 
79196)
@@ -0,0 +1,14 @@
+using System;
+using System.Collections.Generic;
+using System.Reflection;
+
+using StringList = System.Collections.Generic.List<string>;
+
+[assembly: AssemblyTitle ("Monodocer - The Mono Documentation Tool")]
+
+class Test
+{
+       static void Main ()
+       {
+       }
+}


Property changes on: trunk/gert/standalone/bug81855/test.cs
___________________________________________________________________
Name: svn:eol-style
   + native

Modified: trunk/gert/standalone/known-issues
===================================================================
--- trunk/gert/standalone/known-issues  2007-06-11 17:15:37 UTC (rev 79195)
+++ trunk/gert/standalone/known-issues  2007-06-11 17:18:04 UTC (rev 79196)
@@ -27,3 +27,4 @@
 bug81815/**
 bug81818/**
 bug81840/**
+bug81855/**

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to