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 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 |
- [Nant-users] csc resources prefix problem using refid Morss, Charlie
- RE: [Nant-users] csc resources prefix problem using re... Craig Ducharme
- RE: [Nant-users] csc resources prefix problem using re... Morss, Charlie
- RE: [Nant-users] csc resources prefix problem using re... Morss, Charlie