I've seen another problem with resgen:  empty ResX files (which VS will
generate from time to time) with the latest nightly, generate an Xml
exception: 

 error: Invalid ResX input.
 error: Specific exception: XmlException  Message: Invalid ResX input. --->
XmlException: The root element is missing.
 2 error(s).

This does not happen with the nightly from 02/26.

Pete

> -----Original Message-----
> From: Gert Driesen [mailto:[EMAIL PROTECTED] 
> Sent: 19 March 2004 22:47
> To: Tom Lathrop
> Cc: [EMAIL PROTECTED]
> Subject: Re: [Nant-users] Problem with resgen task in nightly build
> 
> 
> Tom,
> 
> This looks like a regression to me.  
> 
> Can you package up a zip file containing the minimum set of 
> files necessary to reproduce this issue ?
> 
> Thanks,
> 
> Gert
> 
> On Fri, 2004-03-19 at 22:52, Tom Lathrop wrote:
> > I'm having trouble with the resgen task in the latest 
> nightly build. 
> > My build file looks like:
> > 
> >     <property name="resource.dir" value="./resources" />
> > 
> >     <target name="build" description="Builds the current 
> configuration">
> >         <mkdir dir="${resource.dir}" />
> > 
> >         <resgen verbose="true" todir="${resource.dir}">
> >              <resources prefix="${nant.project.name}">
> >                 <includes name="**/*.resx" />
> >              </resources>
> >         </resgen>
> >        [...]
> > 
> > My project directory contains 2 .resx files. With the 0.84 
> build, the 
> > resgen task creates 2 files with ".resources" extensions in a 
> > "resources" subdirectory, each with the base name of one of 
> the .resx 
> > files, and each of whose names are prefixed with the 
> project name. So 
> > if my project name were "MyProject" and my .resx files were 
> Foo1.resx 
> > and Foo2.resx, my resources directory would have 
> > MyProject.Foo1.resources and MyProject.Foo2.resources. 
> That's what I 
> > expect, and what I want. In the 0.85 nightly build, nothing gets 
> > written to the resources subdirectory. Instead, the output 
> filenames 
> > following the resgen.exe "/compile" switch are both 
> ".resources". So 
> > of course what happens is that the resources for the first 
> .resx file 
> > are written to a file called ".resources" in my source 
> directory, and 
> > the resources for the second .resx file are written to the same 
> > filename, overwriting the first one.
> > 
> > Unfortunately, I can't use the 0.84 build, since one of my projects 
> > needs to load an XML schema file as an embedded resource. The XML 
> > schema file has been retrieved from source control, and so is 
> > read-only. There's a known bug in 0.84 that causes it to crash when 
> > embedding a read-only resource file like that. That bug is fixed in 
> > the nightly build.
> > 
> > Has the required syntax for the resgen task changed since 0.84?
> > 
> > Tom
> > 
> > 
> > 
> > 
> > -------------------------------------------------------
> > This SF.Net email is sponsored by: IBM Linux Tutorials
> > Free Linux tutorial presented by Daniel Robbins, President 
> and CEO of 
> > GenToo technologies. Learn everything from fundamentals to system 
> > 
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> > _______________________________________________
> > Nant-users mailing list
> > [EMAIL PROTECTED] 
> > https://lists.sourceforge.net/lists/listinfo/nant-users
> > 
> > 
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President 
> and CEO of GenToo technologies. Learn everything from 
> fundamentals to system 
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> _______________________________________________
> Nant-users mailing list
> [EMAIL PROTECTED] 
> https://lists.sourceforge.net/lists/listinfo/n> ant-users
> 


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to