I think there can be two possible causes for this :
- the resx file is not valid xml (at times VS.NET corrupts resx files)
- the resx file contains references to types that are not available when the
resx is compiled (eg. the resx file has reference to .NET Framework 1.1
types, but you're building on .NET 1.0)
What version of NAnt are you actually using ? NAnt uses resgen.exe to
compile resx files, not sure what MS uses actually ... However, we are
using the resgen.exe from the framework that you're currently targeting, and
by default NAnt targets the .NET Framework 1.0, so that might be your
problem ...
Can you send me a copy of one of these resx files that are failing (or
perhaps even a zip file containing all files necessary to reproduce this
issue) ?
Gert
----- Original Message -----
From: "Dave Nespoli" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 28, 2003 1:05 AM
Subject: [nant-dev] NANT, C# and web projects
> Hi,
>
> I am trying to set up my C# web project to be compiled by NANT. Everything
> compiles and works fine within the IDE. I have a created a NANT build file
> which has a simple project tag, like this:
>
> <?xml version="1.0" ?>
> <project name="MyProject" default="build" basedir=".">
> <description>The Hello World of build files.</description>
> <property name="debug" value="true"/>
> <property name="bin_directory" value="bin"/>
>
> <target name="clean" description="remove all generated files">
> <delete dir="${bin_directory}" failonerror="true" verbose="true"/>
> </target>
>
> <target name="build" description="compiles the source code"
> depends="clean">
> <solution configuration="release">
> <projects>
> <includes name="MyProject.csproj" />
> </projects>
> </solution>
> </target>
>
> </project>
>
> It gives me some errors on the building of resource files. Some work, and
> some don't. I have been able to work around some files by just deleting
> whatever info was shown in the resource editor. The error are stuff like:
>
> c:\MyProject\MyPage.aspx.resx
> error: Invalid ResX input
>
> I have not changed any of the resource files, they are the ones VS
> generates. Does NANT use a different compiler then the IDE, seems so?
>
> Does anyone have any idea what might be wrong.
>
> Thanks!!!
> Dave
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: The SF.net Donation Program.
> Do you like what SourceForge.net is doing for the Open
> Source Community? Make a contribution, and help us add new
> features and functionality. Click here: http://sourceforge.net/donate/
> _______________________________________________
> nant-developers mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/nant-developers
>
>
-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community? Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
_______________________________________________
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers