Sorry to throw a not castle related topic here as I don't know where I
could find help.
I am trying to use a vCard library here:
http://www.thoughtproject.com/Libraries/vCard/
In order to make my testing and build process more smooth I have
written a build script, here are the related target code:
<target name="build-test" depends="init-properties">
<copy todir="${build.test.dir}" >
<fileset basedir="${build.bin.dir}">
<include name="**/*.dll"/>
<include name="**/*.pdb"/>
<include name="**/*.xml"/>
<include name="**/*.dll"/>
</fileset>
</copy>
<copy todir="${build.test.dir}">
<fileset basedir="${sharedlib.dir}">
<include name="NUnit.Framework.*"/>
</fileset>
</copy>
<csc debug="${isdebug}" output ="${build.test.file}"
target="library">
<resources basedir="${test.source}" prefix="${project::get-
name()}.UnitTests" dynamicprefix="true" >
<include name="*.resx" />
</resources>
<sources basedir ="${test.source}">
<include name="**/*.cs"/>
</sources>
<references>
<include name="${build.test.dir}\**\*.dll"/>
</references>
</csc>
</target>
<target name="build-bin" depends="init-properties">
<echo message="Debug: ${isdebug}"/>
<copy todir="${build.bin.dir}">
<fileset basedir="${sharedlib.dir}">
<!-- we reserve this for future reference-->
</fileset>
</copy>
<csc debug="${isdebug}" output ="${build.bin.file}"
target="library">
<sources basedir ="${main.source}">
<include name="**/*.cs"/>
</sources>
<resources basedir="${main.source}" prefix="${project::get-name()}"
dynamicprefix="true">
<include name="*.resx" />
</resources>
<references>
<include name="${build.bin.dir}\**\*.dll"/>
</references>
</csc>
</target>
When I try to run the test, the test has failed with errors on unable
to retrieve resource embedded inside the test project. Is there any
parameter missing in order to make resources embed properly inside the
dll?