[Mono-osx] Basic Mono Question

Nik Schramm n at industriality.com
Fri Jul 1 14:59:23 EDT 2005


On 29. Jun 2005, at 1:33 Uhr, Grant Young wrote:

> You will also run into issues with any code that references the file 
> system - for obvious reasons (paths and the path delimiter will be 
> different).

Ok, that is interesting. I have an application that references the file 
system a lot, usually through DirectoryInfo, FileInfo or 
XmlDocument.Load(). Here's an example:

XmlDocument info  = new XmlDocument();
info.Load(Server.MapPath("/inhalt/" + subdirs[i].Name + "/info.xml"));

As you can see, I tend to use Server.MapPath("/absolute/url/") rather 
than "c:///\folder\file.ext" type calls, so I wasn't expecting problems 
there. However, from looking at my application misbehaving in mono, it 
appears that this is part of the problem for me right now.

How should I deal with such issues? Is there a foolproof cross-platform 
way to build paths using absolute urls?


Any info appreciated, thanks

Nik



More information about the Mono-osx mailing list