Author: gert
Date: 2007-12-07 07:01:26 -0500 (Fri, 07 Dec 2007)
New Revision: 90909

Modified:
   trunk/gert/standalone/bug341938/default.build
Log:
Fixed test for silverlight.


Modified: trunk/gert/standalone/bug341938/default.build
===================================================================
--- trunk/gert/standalone/bug341938/default.build       2007-12-07 11:52:31 UTC 
(rev 90908)
+++ trunk/gert/standalone/bug341938/default.build       2007-12-07 12:01:26 UTC 
(rev 90909)
@@ -7,23 +7,33 @@
                <delete>
                        <fileset>
                                <include name="out" />
+                               <include name="mscorlib.dll" />
+                               <include name="System.dll" />
                                <include name="test.exe" />
                        </fileset>
                </delete>
        </target>
 
-       <target name="compile">
+       <target name="compile" depends="init">
                <csc target="exe" define="${csc.defines}" output="test.exe" 
warnaserror="true" warninglevel="4">
                        <sources>
                                <include name="test.cs" />
                        </sources>
                        <references>
                                <include name="mscorlib.dll" />
+                               <include name="System.dll" />
                        </references>
                </csc>
        </target>
 
        <target name="run-test" depends="compile">
+               <!-- silverlight needs these assemblies locally to allow the 
runtime to load them -->
+               <copy todir=".">
+                       <fileset 
basedir="${framework::get-assembly-directory(framework::get-target-framework())}">
+                               <include name="mscorlib.dll" />
+                               <include name="System.dll" />
+                       </fileset>
+               </copy>
                <exec program="test.exe" managed="strict" output="out" />
                <fail if="${file::exists('out')}" />
        </target>

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

Reply via email to