Evan,

You probably have a resx file that has been created/updated by VS.NET 2003.
On your system, NAnt is probably running on .NET 1.1 and if you don't
explicitly set the target framework to .NET 1.0, NAnt will use the .NET 1.1
resgen tool to compile your resx files.

You can run NAnt in verbose mode (NAnt.exe -verbose) to see what resx file
is causing this error.

Gert

----- Original Message ----- 
From: "Evan Levy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 16, 2004 5:06 PM
Subject: [Nant-users] <solution> task fails (resgen.exe) in <nant> called
buildfile (targeting framework 1.0)


Here's a weird one.  I had this working this way:

mainbuildfile contains:
<nant buildfile="otherbuildfile.xml" target="default" />

Other buildfile contains:
<property name="nant.settings.currentframework" value="net-1.0" />
<solution solutionfile="${sourcefolder}\${solutionfile}"
configuration="release" />

This does not work when mainbuildfile is executed.  I get:

build:

                 [echo] 12/16/2004 10:52:29 Building assembly...
             [solution] Starting solution build.
             [solution] Building 'MySolution'[release] ...
                           [resgen] error: Invalid ResX input.
                           [resgen] 1 error(s).

            BUILD FAILED - 0 non-fatal error(s), 2 warning(s)

            External Program Failed: C:\Program
Files\Microsoft.NET\FrameworkSDK\bin\resgen.exe (return code was
-1163019603)

Funny thing is, the build DOES work if I execute otherbuildfile
directly, not called via <nant> from mainbuildfile.
Also, the build DOES work executing the mainbuildfile if <property
name="nant.settings.currentframework" value="net-1.0" /> is omitted in
otherbuildfile.

e





-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to