[Mono-devel-list] Re: [Mono-patches] r36430 - trunk/mcs/class/System.Web

Simon Bain sibain at tendotzero.com
Tue Nov 23 07:50:22 EST 2004


Ben hi.

Have you tested this to see if it wioll break the Win build?

I use both win and Linux and always use / as a path seperator, to keep
things simple for my own little mind. The only times I have troubles is
with relative paths, when I am going down the tree. On these occassions I
need to add the drive as well.

The following code works fine in Win

System.IO.FileInfo mapFile = new System.IO.FileInfo("C:/temp/simon.xml");
System.IO.StreamReader reader = mapFile.OpenText();
string strText = reader.ReadToEnd();
reader.Close();
textBox1.Text = strText;

Also
System.IO.FileInfo mapFile = new System.IO.FileInfo("myFolder/simon.xml");
works going up the tree. From the application directory (bin)

All the best
Simon
-- 
Simon Bain
TENdotZERO
----------
XML 2004 Conference Speaker:- e-Voting
http://www.xmlconference.org/xmlusa/

> Hey,
>
> On Tue, 2004-11-23 at 05:40 -0500, Lluis Sanchez  wrote:
>> Modified: trunk/mcs/class/System.Web/Makefile
>> ===================================================================
>> --- trunk/mcs/class/System.Web/Makefile	2004-11-23 10:39:10 UTC (rev
>> 36429)
>> +++ trunk/mcs/class/System.Web/Makefile	2004-11-23 10:40:08 UTC (rev
>> 36430)
>> @@ -10,7 +10,10 @@
>>  	/r:System.Drawing.dll 		\
>>  	/r:System.Data.dll		\
>>  	/r:System.Xml.dll		\
>> -	/r:System.EnterpriseServices.dll
>> +	/r:System.EnterpriseServices.dll \
>> +	/resource:System.Web.UI.WebControls/TreeView_Default_Collapse.gif \
>> +	/resource:System.Web.UI.WebControls/TreeView_Default_Expand.gif \
>> +	/resource:System.Web.UI.WebControls/TreeView_Default_NoExpand.gif
>
>       * This will break the windows build, because windows expects \ as
>         the path separator.
>       * We should use some sourt of .resources file to solve this I
>         think.
>
>
> -- Ben
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>




More information about the Mono-devel-list mailing list