forked from chmouel/upload-to-cf-cs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
compile.build
36 lines (31 loc) · 942 Bytes
/
compile.build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?xml version="1.0"?>
<project name="upload-to-cf" default="build">
<property name="basename" value="upload-to-cf"/>
<property name="debug" value="true"/>
<target name="clean">
<delete>
<fileset>
<include name="bin/*"/>
</fileset>
</delete>
</target>
<target name="build">
<mkdir dir="bin" />
<csc target="exe" output="bin/${basename}.exe" debug="${debug}">
<sources>
<include name="${basename}.cs"/>
</sources>
<references basedir=".">
<include name="libs/*.dll"/>
</references>
</csc>
<copy todir="bin">
<fileset basedir="libs">
<include name="*.dll"/>
</fileset>
</copy>
</target>
<target name="run" depends="build">
<exec program="bin/${basename}.exe" basedir="."/>
</target>
</project>