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

Reply via email to