Hi Craigh,

In this case, the prefix should be defined on the global definition.

Gert

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Craig Ducharme
> Sent: zaterdag 23 juli 2005 0:19
> To: nant-users@lists.sourceforge.net
> Subject: RE: [Nant-users] csc resources prefix problem using refid
> 
> Hi Charlie, 
> 
>  
> 
> I have experienced the same problem but haven't had the time 
> to submit a bug.  I had to revert to my first approach, which 
> is similar to your working example. 
> 
>  
> 
> Regards, 
> 
> Craig
> 
> ________________________________
> 
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Morss, Charlie
> Sent: Friday, July 22, 2005 3:07 PM
> To: nant-users@lists.sourceforge.net
> Subject: [Nant-users] csc resources prefix problem using refid
> 
>  
> 
> Hello,
> 
>  
> 
> I'm having problems with my <resources> within a <csc> task.  
> It works fine this way:
> 
>  
> 
>             <property name="default.namespace" value="TestNamespace"/>
> 
>         ...
> 
>             <resources prefix="${default.namespace}" 
> dynamicprefix="true">
> 
>                         <include 
> name="${src.root.dir}/**/*.resx" />                                  
> 
>             </resources>
> 
>  
> 
> But if I use a refid for the files to include in either a 
> resourcefileset or a regular fileset the prefix attribute in 
> the <resources> element is ignored:
> 
>  
> 
>             <fileset id="resource.files">
> 
>                  <include name="${src.root.dir}/**/*.resx" />
> 
>             </fileset>
> 
>         ...             
> 
>             <resources prefix="${default.namespace}" 
> 
>                    dynamicprefix="true" 
> 
>                    refid="resource.files"/>
> 
>  
> 
> Using Reflector I see the resource file is still loaded, but 
> it doesn't have the prefix specified (no prefix at all - it 
> doesn't even look like it tried to prepend one). 
> 
>  
> 
> As I've said, I've tried both regular fileset and 
> resourcefileset with no luck.  I don't think it would make 
> any difference, but the fileset is defined in a task which 
> then calls a task which does the actual compiling.  This 
> technique works fine for the C# source files, but fails for 
> the resource files as described.
> 
>  
> 
> Any help would be great - thanks,
> 
> Charlie
> 
>  
> 
>  
> 
> 



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to