System.build 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?xml version="1.0" encoding="iso-8859-1"?>
  2. <!-- NAnt build file for System.dll -->
  3. <project name="System" default="build">
  4. <property name="debug" value="false"/>
  5. <target name="build">
  6. <mkdir dir="../lib"/>
  7. <csc target="library" output="../lib/System.dll" debug="${debug}">
  8. <arg value="/nowarn:1595"/>
  9. <arg value="/unsafe"/>
  10. <arg value="/noconfig"/> <!-- don't reference ms assemblies -->
  11. <arg value="/lib:../lib/"/>
  12. <!-- cor compare dies with these currently -->
  13. <!--arg value="/nostdlib"/--> <!-- don't reference mscorlib -->
  14. <!--arg value="/r:corlib.dll"/-->
  15. <arg value="/r:System.Xml.dll"/>
  16. <sources>
  17. <includes name="**/*.cs"/>
  18. <excludes name="Test/**"/>
  19. <excludes name="System.CodeDom/Code-X-Collection.cs"/>
  20. <excludes name="System.Net/IAuthenticationModule.cs"/>
  21. <excludes name="System.Net/AuthenticationManager.cs"/>
  22. </sources>
  23. </csc>
  24. <copy file="../lib/System.dll" tofile="Test/System.dll"/>
  25. <nant basedir="Test" target="build"/>
  26. </target>
  27. <target name="test" depends="build">
  28. <nant basedir="Test" target="test"/>
  29. </target>
  30. <target name="clean">
  31. <nant basedir="Test" target="clean"/>
  32. <delete file="../lib/System.dll" failonerror="false"/>
  33. </target>
  34. </project>