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

Reply via email to