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 this "commonbuild target" so it 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