> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Julien Sobrier
> Sent: woensdag 16 november 2005 17:57
> To: nant-users@lists.sourceforge.net
> Subject: [Nant-users] <resources>
> 
> Hello,
> I'd like to include files as resources in my assembly. I'm using NAnt
> 0.85RC3 with Mono 1.1.10
> 
> For example:
> <csc target="library" output="${dir}/Database.dll">
>     <sources>
>         <include name="AssemblyInfo.cs" />
>         <include name="Libraries/Database/*.cs" />
>     </sources>
>     <resources failonempty="true" basedir="." id="sample">
>         <include name="../tools/MediaDB/MediaInfoDB.sql" />
>     </resources>
> </csc>
> 
> But I cannot use the id in <resources>: I got an error message saying
> that id is only available at the project or target level. How can I
> assign an ID to the file I want to include?

Problem is that this is not possible right now. NAnt uses a predefined way
to automatically calculate the resource idenfiers based on the relative
path, the prefix attribute (if dynamicprefix is set to "true").

Right now there's no way to explicitly specific a resource idenfier for each
individual resource file, but I'm open for suggestion on this topic.

Gert



-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to