[Mono-list] resgen problem

Gert Driesen gert.driesen at telenet.be
Sun Feb 4 11:07:26 EST 2007

> -----Original Message-----
> From: mono-list-bounces at lists.ximian.com [mailto:mono-list-
> bounces at lists.ximian.com] On Behalf Of Paul
> Sent: zondag 4 februari 2007 16:47
> To: Mono List
> Subject: [Mono-list] resgen problem
> Hi,
> I have a resx file in the Properties with pngs in the Resources
> directory. If I use resgen Properties/Design.resx (or cd to the
> Properies directory and just use resgen Design.resx), all I get out is
> the error
> Error: Exception has been thrown by the target of an invocation.
> Inner exception: Could not find file "..\Resources\apply.png"
> Do I need to go into the resx file and alter the ..\ to be ../ to work
> under Linux or should resgen do this conversion?

Up until now, resgen did not support the /useSourcePath option. This option
instructs resgen to resolve relative paths using the directory of the resx
file as current directory.

I have been working on this, and MWF support for ResXResourceReader.BasePath
(which was necessary for this) has already landed in SVN. This involved
quite some changes, since we were loading resources in the ctor. I've now
modified ResXResourceReader to lazy load resources and fixed a bunch of
other (small) issues at the same time.

I'm now preparing a patch for resgen which will add support for the
/useSourcePath option.

I'll attach the patch to bug #80571 in a minute, and await approval.

Let me know if that fixes your problem.


More information about the Mono-list mailing list