Hi Jose, I've added support for this by introducing a new attribute on <resgen> called "usesourcepath". This attribute is only meaningful when targeting .NET 2.0 (or higher).
If you're using a compiler task (eg. <csc>), and you're targeting .NET 2.0 (or higher) then it will work out-of-the-box. I also added dependency scanning of external file references (for .NET 2.0); meaning, an exiting resources file will also be updated if one of the external files that it references has been updated (since the resources file was last updated). I still need to run some additional tests before committing these change to CVS. I'll let you know when a new nightly build containing these changes is available. Gert > -----Original Message----- > From: Jose [mailto:[EMAIL PROTECTED] > Sent: dinsdag 14 december 2004 16:56 > To: 'Gert Driesen' > Subject: RE: [Nant-users] basedir seems to fail on resources task > > Thanks for the info. > > I'll wait this feature impatiently. > Jose > > -----Mensaje original----- > De: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] En nombre de > Gert Driesen > Enviado el: martes, 14 de diciembre de 2004 8:56 > Para: Jose; [EMAIL PROTECTED] > Asunto: Re: [Nant-users] basedir seems to fail on resources task > > Jose, > > The reason why resgen fails is because it currently provides > no support for > the /usesourcepath switch (which instructs resgen to resolve > relative paths > using the directory where the (re)resource is located). > > I'll add support for this later ... > > Gert > > ----- Original Message ----- > From: "Jose" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, December 13, 2004 8:58 PM > Subject: [Nant-users] basedir seems to fail on resources task > > > This is part of my build file: > > <csc target="winexe" output="bin/gesptur.exe" debug="true"> > <sources> > <include name="gesptur/*.cs" /> > <include name="gesptur/Properties/*.cs" /> > <include name="gesptur/Controls/*.cs" /> > </sources> > <references> > <include name="references/C1.Common.dll" /> > <include name="references/C1.Win.C1TrueDBGrid.dll" /> > <include name="references/c1.win.c1flexgrid.dll" /> > <include name="bin/JAGSoftware.Common.Data.dll" /> > <include name="bin/JAGSoftware.Gesptur.DataLayer.dll" /> > </references> > <resources basedir="gesptur/Properties" > prefix="JAGSoftware.Gesptur.Properties" dynamicprefix="false" > failonempty="true"> > <include name="*.resx" /> > </resources> > </csc> > > The resx file has some references to gif's in the format: > > <data name="customer" type="System.Resources.ResXFileRef, > System.Windows.Forms"> > <value>..\Resources\Customer.gif;System.Drawing.Bitmap, > System.Drawing, > Version=2.0.3600.0, Culture=neutral, > PublicKeyToken=b03f5f7f11d50a3a</value> > </data> > > When I try to build my project I get the following error: > > [resgen] > C:\Gesptur\gesptur\Properties\GespturResources.resx(120,5): error > RG0000: Could not find file 'C:\Documents and Settings\jose.HOME\Confi > guración local\Temp\Resources\Customer.gif'. Line 120, position 5. > [resgen] 1 error(s). > > How can I fix this? > > Thanks in advance, > Jose. > > > ------------------------------------------------------- > 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 > > ------------------------------------------------------- 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