there was an issue with this scenario in the latest builds which has just been fixed in CVS. You should be able to grab a new nightly build - there should be a new one available soon - with the fix.
note that the references fileset is actually an assemblyfileset [1] and slightly more specialized than a regular fileset ie they support a nested <lib> element. So when you define your references fileset you can do it in one of the following 2 ways :
<assemblyfileset id="foo"> <include name="*.dll" /> <lib> <include name="../mylibs" /> </lib> </assemblyfileset >
<fileset id="bar">
<include name="*.dll" /> </fileset >
references: [1] http://nant.sourceforge.net/nightly/help/types/assemblyfileset.html
Ian
Issue with references nested element in csc task:
I am trying to reuse a common target for compilation across all of my components. I have created a fileset for references and passed the refid to the "references" nested element within the CSC task. However, it seems that the fileset is being ignored or not being "merged" within the references element. Is there another way to do this? I would prefer passing a fileset to the references element so this commonbuild target can be re-used across all of my component builds.
<!-- Common building --> <target name="commonbuild" depends="build-init" verbose="true" description="Common build routine">
<csc target="${projecttype}" output="${output.dir}\${outputfile}" doc="${build.bin.dir}\${basename}.xml" nowarn="${nowarns}" debug="${debug}" verbose="true">
<sources> <includes name="src\**\*.cs"/> <excludes name="src\**\Tests\*" /> <includes name="src\AssemblyInfo.cs" /> </sources>
<resources basedir="src" dynamicprefix="true" prefix="${basename}" > <includes name="**\*.resx"/> </resources>
<references refid="project.references">
</references>
<lib> </lib> </csc> </target>
Thanks Ravi
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users
--
Ian MacLean, Developer, ActiveState, a division of Sophos
http://www.ActiveState.com
------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users