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.4 kB

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