List Info

Thread: DirectorySeperatorChar ins ResXFiles.




DirectorySeperatorChar ins ResXFiles.
country flaguser name
Germany
2007-08-20 15:35:48
Hello all,

I've now come across an issue where resgen2 could not
convert a *.resx
file to a *.resources file.

The problem is that the file has been originally written in
windows and
uses an external file reference like
"..somedirsomefile", which causes
a FileNotFoundException in ResXFileRef.cs on line 81 because
the given
path is directly used in that filestream.

Attached is a short hack which fixes this error but I'm not
familiar
with how these *.resx paths should be handled in general, so
please feel
free to comment on it.

Kind Regards,
Valentin S.

_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-listlists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winform
s-list

  
Re: DirectorySeperatorChar ins ResXFiles.
country flaguser name
Germany
2007-08-21 08:14:59
Hello again,

I forgot in my previous submission to check if we are
running on Unix.
Attached path corrects this.

However, I'm still not sure if this is the right way to go,
so please
feel free to tell your two cents on this.

Kind Regards,
Valentin.

On Mon, 2007-08-20 at 22:35 +0200, Valentin Sawadski wrote:
> Hello all,
> 
> I've now come across an issue where resgen2 could not
convert a *.resx
> file to a *.resources file.
> 
> The problem is that the file has been originally
written in windows and
> uses an external file reference like
"..somedirsomefile", which causes
> a FileNotFoundException in ResXFileRef.cs on line 81
because the given
> path is directly used in that filestream.
> 
> Attached is a short hack which fixes this error but I'm
not familiar
> with how these *.resx paths should be handled in
general, so please feel
> free to comment on it.
> 
> Kind Regards,
> Valentin S.
> _______________________________________________
> Mono-winforms-list maillist  -  Mono-winforms-listlists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-winform
s-list

_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-listlists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winform
s-list

  
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )