[Gtk-sharp-list] Build problems

Gonzalo Paniagua Javier gonzalo@ximian.com
18 Feb 2003 12:01:38 +0100

El mar, 18 de 02 de 2003 a las 10:41, Martin Baulig escribió: 
> > > mono  ../generator/gapi_codegen.exe --generate atk-api.xml pango-api.xml gdk-api.xml gdk-symbols.xml gtk-api.xml gtk-symbols.xml glade-api.xml art-api.xml gnome-api.xml gda-api.xml gst-api.xml gnomedb-api.xml && touch generated-stamp
> > > 
> > > Unhandled Exception: System.IO.FileNotFoundException: Could not find file "/atk-api.xml/"
>                                                                               ^^^^^^^^^^^^^^^
> This is the actual problem: it's actually trying to open "/atk-api.xml/", not
> "atk-api.xml" in the current directory.

Try now. I've added a hack in XmlDocument.Load until someone fixes
Uri.Parse. If you're curious, "/atk-api.xml/" is new Uri

MS runtime fails when you call XmlDocument.Load (string) with a file
name with no Uri information. I suggest using the XmlDocument.Load
(Stream) to avoid problems once Uri.Parse properly fails when an
argument like that is passed.