Author: gert
Date: 2007-05-16 15:38:21 -0400 (Wed, 16 May 2007)
New Revision: 77506
Added:
trunk/gert/standalone/bug57612/
trunk/gert/standalone/bug57612/a.cs
trunk/gert/standalone/bug57612/a.exe.config
trunk/gert/standalone/bug57612/b.cs
trunk/gert/standalone/bug57612/default.build
Modified:
trunk/gert/standalone/bug59286/default.build
trunk/gert/standalone/known-issues
Log:
Added test for bug #57612.
Added: trunk/gert/standalone/bug57612/a.cs
===================================================================
--- trunk/gert/standalone/bug57612/a.cs 2007-05-16 19:27:47 UTC (rev 77505)
+++ trunk/gert/standalone/bug57612/a.cs 2007-05-16 19:38:21 UTC (rev 77506)
@@ -0,0 +1,13 @@
+namespace a
+{
+ class Program
+ {
+ static int Main (string[] args)
+ {
+ b.SomeClass b = new b.SomeClass();
+ if (b.Test () != "ok b")
+ return 1;
+ return 0;
+ }
+ }
+}
Property changes on: trunk/gert/standalone/bug57612/a.cs
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/gert/standalone/bug57612/a.exe.config
===================================================================
--- trunk/gert/standalone/bug57612/a.exe.config 2007-05-16 19:27:47 UTC (rev
77505)
+++ trunk/gert/standalone/bug57612/a.exe.config 2007-05-16 19:38:21 UTC (rev
77506)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<configuration>
+ <runtime>
+ <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
+ <probing privatePath="assembly-b" />
+ </assemblyBinding>
+ </runtime>
+</configuration>
Property changes on: trunk/gert/standalone/bug57612/a.exe.config
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/gert/standalone/bug57612/b.cs
===================================================================
--- trunk/gert/standalone/bug57612/b.cs 2007-05-16 19:27:47 UTC (rev 77505)
+++ trunk/gert/standalone/bug57612/b.cs 2007-05-16 19:38:21 UTC (rev 77506)
@@ -0,0 +1,14 @@
+namespace b
+{
+ public class SomeClass
+ {
+ public SomeClass()
+ {
+ }
+
+ public string Test()
+ {
+ return "ok b";
+ }
+ }
+}
Property changes on: trunk/gert/standalone/bug57612/b.cs
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/gert/standalone/bug57612/default.build
===================================================================
--- trunk/gert/standalone/bug57612/default.build 2007-05-16 19:27:47 UTC
(rev 77505)
+++ trunk/gert/standalone/bug57612/default.build 2007-05-16 19:38:21 UTC
(rev 77506)
@@ -0,0 +1,68 @@
+<project name="bug57612" default="rebuild">
+ <target name="mono-1.0">
+ <property name="csc.defines"
value="NET_1_0,NET_1_1,ONLY_1_1,MONO" />
+ </target>
+
+ <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-1.1">
+ <property name="csc.defines" value="NET_1_0,NET_1_1,ONLY_1_1" />
+ </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-1.0,mono-2.0,net-1.1,net-2.0" />
+
+ <target name="clean">
+ <delete>
+ <fileset>
+ <include name="whatever/**" />
+ <include name="out" />
+ <include name="a.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="run" />
+ <call target="clean" />
+ </if>
+ </foreach>
+
+ <property name="nant.settings.currentframework"
value="${original.targetframework}" />
+ </target>
+
+ <target name="compile">
+ <mkdir dir="whatever" />
+ <csc target="library" define="${csc.defines}"
output="whatever/b.dll" warnaserror="true" warninglevel="4">
+ <sources>
+ <include name="b.cs" />
+ </sources>
+ </csc>
+ <csc target="exe" define="${csc.defines}" output="a.exe"
warnaserror="true" warninglevel="4">
+ <sources>
+ <include name="a.cs" />
+ </sources>
+ <references basedir="whatever">
+ <include name="b.dll" />
+ </references>
+ </csc>
+ </target>
+
+ <target name="run" depends="compile">
+ <exec program="a.exe" managed="true" output="out" />
+ <fail if="${file::exists('out')}" />
+ </target>
+
+ <target name="rebuild" depends="clean, build" />
+</project>
Property changes on: trunk/gert/standalone/bug57612/default.build
___________________________________________________________________
Name: svn:eol-style
+ native
Modified: trunk/gert/standalone/bug59286/default.build
===================================================================
--- trunk/gert/standalone/bug59286/default.build 2007-05-16 19:27:47 UTC
(rev 77505)
+++ trunk/gert/standalone/bug59286/default.build 2007-05-16 19:38:21 UTC
(rev 77506)
@@ -56,4 +56,3 @@
<target name="rebuild" depends="clean, build" />
</project>
-
Modified: trunk/gert/standalone/known-issues
===================================================================
--- trunk/gert/standalone/known-issues 2007-05-16 19:27:47 UTC (rev 77505)
+++ trunk/gert/standalone/known-issues 2007-05-16 19:38:21 UTC (rev 77506)
@@ -1,3 +1,4 @@
+bug57612/**
bug78455/**
bug81563/**
bug81601/**
@@ -4,3 +5,4 @@
bug81634/**
bug81571/**
bug81633/**
+bug81642/**
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches