3
This build file is intended to show off some of NAnt's capabilities in
4
building Visual Basic.NET programs. The .vbproj file is also located
5
in the directory so you can compare Visual Studio's project file with
8
<project name="HelloWindowsForms" default="run">
9
<property name="basename" value="HelloWindowsForms"/>
10
<property name="debug" value="true"/>
11
<property name="build.dir" value="bin"/>
13
<target name="clean" description="cleans build directory">
14
<delete dir="${build.dir}" verbose="true" if="${directory::exists(build.dir)}" />
17
<target name="debug" depends="clean">
18
<property name="debug" value="true" />
21
<target name="release" depends="clean">
22
<property name="debug" value="false" />
26
<mkdir dir="${build.dir}"/>
27
<vbc target="winexe" output="${build.dir}/${basename}.exe" debug="${debug}"
28
main="HelloWindowsForms.MainForm"
32
rootnamespace="HelloWindowsForms"
33
removeintchecks="true">
35
<import namespace="Microsoft.VisualBasic" />
36
<import namespace="System" />
37
<import namespace="System.Collections" />
38
<import namespace="System.Data" />
39
<import namespace="System.Diagnostics" />
40
<import namespace="System.Drawing" />
41
<import namespace="System.Windows.Forms" />
44
<include name="*.vb" />
47
<include name="System.dll" />
48
<include name="System.Data.dll" />
49
<include name="System.Drawing.dll" />
50
<include name="System.Windows.Forms.dll" />
51
<include name="System.Xml.dll" />
56
<target name="run" depends="build">
57
<exec program="${basename}.exe" basedir="${build.dir}" />