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,
You need to change target="exe" to target="winexe" to build a windows gui executable.
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.
You can create a master build file that calls them in order using the <nant> task. If you want the second build to only run if the first one succeeds then you'll need to wrap the nant calls inside targets and setup the dependencies appropriatly.
Ian
Thanks,
Andy
------------------------------------------------------- This SF.Net email is sponsored by: INetU Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users