[Gtk-sharp-list] Embeded File does not work with glade in windows?
jonpryor at vt.edu
Fri Dec 1 20:25:59 EST 2006
On Thu, 2006-11-30 at 14:30 -0800, Peter Johanson wrote:
> Sadly, csc/VS name embedded resources including some funky combination
> of directories or somesuch in the resource name when including them. If
> you use monodis or ildasm on the generated assembly, you can see that
> the resource name isn't simply 'HegloTransportes.glade' on windows, but
> probably 'some/path/to/HegloTransportes.glade'. Most of the time you can
> get around this by making some helper method to trim off path names from
> strings before passing them to the Glade.XML methods.
Or...check the mcs man page:
Embeds to the given resource file. The optional ID can
be used to give a different name to the resource. If not
specified, the resource name will be the file name.
Note the optional [,ID] section. This allows you to use:
and access the resource as HegloTransportes.glade,
*not* /path/to/HegloTransportes.glade. CSC.EXE should support the same
syntax. No additional helper methods necessary.
More information about the Gtk-sharp-list