You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.xml 5.8 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. <?xml version="1.0"?>
  2. <!--
  3. Licensed to the Apache Software Foundation (ASF) under one or more
  4. contributor license agreements. See the NOTICE file distributed with
  5. this work for additional information regarding copyright ownership.
  6. The ASF licenses this file to You under the Apache License, Version 2.0
  7. (the "License"); you may not use this file except in compliance with
  8. the License. You may obtain a copy of the License at
  9. http://www.apache.org/licenses/LICENSE-2.0
  10. Unless required by applicable law or agreed to in writing, software
  11. distributed under the License is distributed on an "AS IS" BASIS,
  12. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. See the License for the specific language governing permissions and
  14. limitations under the License.
  15. -->
  16. <document>
  17. <properties>
  18. <index value="1"/>
  19. <title>Apache .NET Ant Library</title>
  20. </properties>
  21. <body>
  22. <section name="Apache .NET Ant Library&amp;#x2122;">
  23. <p>The Apache .NET Antlib provides tasks that support
  24. development of .NET software with Apache Ant.</p>
  25. </section>
  26. <section name="Apache .NET Ant Library 1.1">
  27. <h3>February 4, 2011 - Apache .NET Ant Library 1.1
  28. Available</h3>
  29. <p>Apache .NET Ant Library 1.1 is now available for
  30. download as <a
  31. href="http://ant.apache.org/antlibs/bindownload.cgi">binary</a>
  32. or <a
  33. href="http://ant.apache.org/antlibs/srcdownload.cgi">source</a>
  34. release.</p>
  35. <p>This release fixes a few bugs and adds new tasks for the
  36. F# compiler and the tallow tool of the WiX toolkit.</p>
  37. </section>
  38. <section name="Idea">
  39. <p>This library doesn't strive to replace NAnt or MSBuild, its
  40. main purpose is to help those of us who work on projects
  41. crossing platform boundaries. With this library you can use Ant
  42. to build and test the Java as well as the .NET parts of your
  43. project.</p>
  44. <p>This library provides a special version of the
  45. <code>&lt;exec&gt;</code> task tailored to run .NET executables.
  46. On Windows it will assume the Microsoft framework is around and
  47. run the executable directly, while it will invoke Mono on any
  48. other platform. Of course you can override these
  49. assumptions.</p>
  50. <p>Based on this a few tasks to run well known .NET utilities
  51. from within Ant are provided, namely tasks to run <a
  52. href="http://www.nunit.org/">NUnit</a>, <a
  53. href="http://nant.sf.net/">NAnt</a>, <a
  54. href="http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=27&amp;SiteID=1">MSBuild</a>
  55. and the <a href="http://wix.sf.net/">Wix</a> toolkit.</p>
  56. <p>The initial .NET tasks of Ant (compiler tasks for C#, J# and VB.NET
  57. for example) have also been moved to this Antlib and will see further
  58. development here.</p>
  59. </section>
  60. <section name="Tasks">
  61. <subsection name="dotnetexec">
  62. <p>Runs a .NET executable.</p>
  63. </subsection>
  64. <subsection name="nunit">
  65. <p>Runs NUnit tests.</p>
  66. </subsection>
  67. <subsection name="nant">
  68. <p>Invokes NAnt, either on an external file or a build file
  69. snippet contained inside your Ant build file.</p>
  70. </subsection>
  71. <subsection name="msbuild">
  72. <p>Invokes MSBuild, either on an external file or a build file
  73. snippet contained inside your Ant build file.</p>
  74. </subsection>
  75. <subsection name="wix">
  76. <p>Invokes the candle and light executables of the WiX toolkit
  77. in order to create MSI installers from within Ant.</p>
  78. </subsection>
  79. </section>
  80. <section name="Examples">
  81. <subsection name="nant">
  82. <source><![CDATA[
  83. <project xmlns:dn="antlib:org.apache.ant.dotnet">
  84. <dn:nant>
  85. <build>
  86. <echo message="Hello world"/>
  87. </build>
  88. </dn:nant>
  89. </project>
  90. ]]></source>
  91. <p>runs NAnt on the embedded <code>&lt;echo&gt;</code>
  92. task, output looks like</p>
  93. <source><![CDATA[
  94. Buildfile: test.xml
  95. [dn:nant] NAnt 0.85 (Build 0.85.1932.0; rc3; 16.04.2005)
  96. [dn:nant] Copyright (C) 2001-2005 Gerry Shaw
  97. [dn:nant] http://nant.sourceforge.net
  98. [dn:nant]
  99. [dn:nant] Buildfile: file:///c:/DOKUME~1/STEFAN~1.BOD/LOKALE~1/Temp/build1058451555.xml
  100. [dn:nant] Target framework: Microsoft .NET Framework 1.1
  101. [dn:nant]
  102. [dn:nant] [echo] Hello world
  103. [dn:nant]
  104. [dn:nant] BUILD SUCCEEDED
  105. [dn:nant]
  106. [dn:nant] Total time: 0.2 seconds.
  107. BUILD SUCCESSFUL
  108. Total time: 2 seconds]]></source>
  109. </subsection>
  110. <subsection name="msbuild">
  111. <source><![CDATA[
  112. <project xmlns:dn="antlib:org.apache.ant.dotnet">
  113. <dn:msbuild>
  114. <build>
  115. <Message Text="Hello world"
  116. xmlns="http://schemas.microsoft.com/developer/msbuild/2003"/>
  117. </build>
  118. </dn:msbuild>
  119. </project>]]></source>
  120. <p>runs MSBuild on the embedded <code>&lt;Message&gt;</code>
  121. task, output looks like</p>
  122. <source><![CDATA[
  123. Buildfile: test.xml
  124. [dn:msbuild] Microsoft (R) Build Engine Version 2.0.50727.42
  125. [dn:msbuild] [Microsoft .NET Framework, Version 2.0.50727.42]
  126. [dn:msbuild] Copyright (C) Microsoft Corporation 2005. All rights reserved.
  127. [dn:msbuild] Build started 15.12.2005 20:21:56.
  128. [dn:msbuild] __________________________________________________
  129. [dn:msbuild] Project "c:\Dokumente und Einstellungen\stefan.bodewig\Lokale Einstellungen\Temp\build1543310185.xml" (default targets):
  130. [dn:msbuild] Target generated-by-ant:
  131. [dn:msbuild] Hello world
  132. [dn:msbuild] Build succeeded.
  133. [dn:msbuild] 0 Warning(s)
  134. [dn:msbuild] 0 Error(s)
  135. [dn:msbuild] Time Elapsed 00:00:00.10
  136. BUILD SUCCESSFUL
  137. Total time: 0 seconds
  138. ]]></source>
  139. </subsection>
  140. </section>
  141. </body>
  142. </document>