~mandel/ubuntuone-windows-installer/fix_null_pointer_start

« back to all changes in this revision

Viewing changes to tools/Nant/examples/HelloWindowsForms/HelloWindowsForms.build

  • Committer: Manuel de la Pena
  • Date: 2010-07-08 13:22:59 UTC
  • Revision ID: mandel@themacaque.com-20100708132259-y1jgyuyqfe9stt8u
Updated build script to run tests and added all the required tools so far.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0"?>
 
2
<!--
 
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 
 
6
    this one.
 
7
-->
 
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"/>
 
12
 
 
13
    <target name="clean" description="cleans build directory">
 
14
        <delete dir="${build.dir}" verbose="true" if="${directory::exists(build.dir)}" />
 
15
    </target>
 
16
 
 
17
    <target name="debug" depends="clean">
 
18
        <property name="debug" value="true" />
 
19
    </target>
 
20
 
 
21
    <target name="release" depends="clean">
 
22
        <property name="debug" value="false" />
 
23
    </target>
 
24
 
 
25
    <target name="build">
 
26
        <mkdir dir="${build.dir}"/>
 
27
        <vbc target="winexe" output="${build.dir}/${basename}.exe" debug="${debug}" 
 
28
                main="HelloWindowsForms.MainForm"
 
29
                optioncompare="text"
 
30
                optionexplicit="true"
 
31
                optionstrict="true"
 
32
                rootnamespace="HelloWindowsForms"
 
33
                removeintchecks="true">
 
34
            <imports>
 
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" />
 
42
            </imports>
 
43
            <sources>
 
44
                <include name="*.vb" />
 
45
            </sources>
 
46
            <references>
 
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" />
 
52
            </references>
 
53
        </vbc>
 
54
    </target>
 
55
 
 
56
    <target name="run" depends="build">
 
57
        <exec program="${basename}.exe" basedir="${build.dir}" />
 
58
    </target>
 
59
</project>