I just figured out what you had in mind!  I need to define the prefix
attribute when I declare the resourcefileset, not later on when I refer
to it via a refid:

        <resourcefileset prefix="${default.namespace}" 
                                dynamicprefix="true"
id="resource.files">
                <include name="${src.root.dir}/**/*.resx" />
        </resourcefileset>      

... Then later on I just do this:
        <resourcefileset refid="resource.files">        

Thanks for pointing me in the right direction,
Charlie


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Morss,
Charlie
Sent: Saturday, July 23, 2005 12:10 PM
To: Gert Driesen
Cc: nant-users@lists.sourceforge.net
Subject: RE: [Nant-users] csc resources prefix problem using refid

I've spent considerable time looking around, but I've had no luck
figuring out how to define the resource prefix "on the global
definition".  A little snippet of a build file might clear it up for me.


Thanks a ton,
Charlie
 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gert
Driesen
Sent: Friday, July 22, 2005 9:50 PM
To: 'Craig Ducharme'; nant-users@lists.sourceforge.net
Subject: RE: [Nant-users] csc resources prefix problem using refid

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





-------------------------------------------------------
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_idt77&alloc_id492&op=ick
_______________________________________________
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users





-------------------------------------------------------
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_idt77&alloc_id492&op=click
_______________________________________________
Nant-users mailing list
Nant-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to