- <references basedir="${compactframework.dir}">
- <include name="mscorlib.dll" />
- <include name="System.dll" />
- </references>
- </csc>
+ <property name="framework.dir" value="${framework::get-framework-directory(framework::get-target-framework())}" />
+ <property name="csc.exe" value="${path::combine(framework.dir, 'csc.exe')}" />
+
+ <copy todir="${temp.dir}">
+ <fileset refid="all-files" />
+ </copy>
+
+ <exec program="${csc.exe}" workingdir="${temp.dir}" failonerror="true">
+ <arg value="/optimize" />
+ <arg value="/debug-" />
+ <arg value="/define:${compactframework.defines}" />
+ <arg value="/out:${build.dir}/Mono.Cecil.dll" />
+ <arg value="/target:library" />
+ <arg value="/warn:0" />
+ <arg value="/noconfig" />
+ <arg value="/nostdlib+" />
+ <arg value="/reference:${compactframework.dir}/mscorlib.dll" />
+ <arg value="/reference:${compactframework.dir}/System.dll" />
+ <arg value="/recurse:*.cs" />
+ </exec>