ServiceManager.exe.build 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?xml version="1.0" ?>
  2. <project name="ServiceManager" default="build">
  3. <target name="build">
  4. <echo message="Build Directory is ${project::get-base-directory()}/${build.dir}" />
  5. <mkdir dir="${project::get-base-directory()}/${build.dir}" />
  6. <copy todir="${project::get-base-directory()}/${build.dir}">
  7. <fileset basedir="${project::get-base-directory()}">
  8. </fileset>
  9. </copy>
  10. <csc target="exe" debug="${build.debug}" unsafe="False" define="TRACE;DEBUG" output="${project::get-base-directory()}/${build.dir}/${project::get-name()}.exe">
  11. <resources prefix="ServiceManager" dynamicprefix="true" >
  12. </resources>
  13. <sources failonempty="true">
  14. <include name="ServiceManager.cs" />
  15. </sources>
  16. <references basedir="${project::get-base-directory()}">
  17. <lib>
  18. <include name="${project::get-base-directory()}" />
  19. <include name="${project::get-base-directory()}/${build.dir}" />
  20. </lib>
  21. <include name="System.dll" />
  22. <include name="System.ServiceProcess.dll" />
  23. <include name="System.Xml.dll" />
  24. </references>
  25. </csc>
  26. <echo message="Copying from [${project::get-base-directory()}/${build.dir}/] to [${project::get-base-directory()}/../../bin/" />
  27. <mkdir dir="${project::get-base-directory()}/../../bin/"/>
  28. <copy todir="${project::get-base-directory()}/../../bin/">
  29. <fileset basedir="${project::get-base-directory()}/${build.dir}/" >
  30. <include name="*.dll"/>
  31. <include name="*.exe"/>
  32. </fileset>
  33. </copy>
  34. </target>
  35. <target name="clean">
  36. <delete dir="${bin.dir}" failonerror="false" />
  37. <delete dir="${obj.dir}" failonerror="false" />
  38. </target>
  39. <target name="doc" description="Creates documentation.">
  40. </target>
  41. </project>