I am new to NANT. I have some questions while
using NANT.
1. I have a Windows application. >From the
visual studio, I can have it compiled successfully. The executable is fine
for me to run. But when I compile it using the NANT build file with NANT,
the executable file compiled from NANT just crashes although there was no error
generated from NANT. It seems that the project was compiled as console
application instead of Windows application. Any one can tell me how to fix
it? For you to help me debug, here is the build file I used.
<?xml version="1.0"?>
<project name="TestApp.exe" default="build"> <property name="debug" value="true"/> <property name="build.dir" value="."/> <target name="build" description="compilesTest"> <csc target="exe" output="${build.dir}\Test.exe" debug="${debug}"> <sources> <includes name="**/*.cs"/> </sources> <resources> <includes name="**/*.resx" /> </resources> <arg value="/nowarn:1591" /> </csc> </target> </project>
2. I have two projects in two separate
directories. Each has its own build file. Is there is way for me to
let NANT always run one build file first and then the other one? I know
how to do it if there is just one NANT build file. But I don't know how to
let one build file depend on successfully executing of another build
file.
Thanks,
Andy
|