
mikelee
Members-
Posts
9 -
Joined
-
Last visited
mikelee's Achievements
Newbie (1/14)
0
Reputation
-
Build script <project name="XMLProxy " default="build.XMLProxy"> <property name="configuration" value="Release MinDependency" overwrite="false" /> <target name="build.XMLProxy"> <solution configuration="Release MinDependency" solutionfile="XMLProxy.sln" /> </target> </project> Yes, My build builds successfully. But nothings being built Heres what I get: ------------------------------------------------------------------- W:\src\TIMD\Common\XMLProxy>nant build NAnt 0.85 (Build 0.85.1754.0; net-1.0.win32; nightly; 10/20/2004) Copyright © 2001-2004 Gerry Shaw http://nant.sourceforge.net Buildfile: file:///W:/src/TIMD/Common/XMLProxy/XMLProxy.build Target(s) specified: build build: build.XMLProxy: [solution] Starting solution build. [solution] Skipping 'XMLProxy' [Release MinDependency] ... BUILD SUCCEEDED Total time: 0.4 seconds. -------------------------------------------------------------------- Any ideas?
-
I'm trying to build a solution file with a configuration of Release MinDependency and Nant seems to skip the build. Any ideas to why and how I can fix it? thanks!
-
I'm trying to find out if its possible to create a batch file that will automatically add additional paths into the include directories in .Net. Currently, we do it manually in options->projects->VC++ Directories and it would be nice if a batch file can automatically set it up. Any Ideas? Thanks for the help in advance!
-
I'm trying to integrate Nant into other projects that have been built with nmake. Does anyone know if I can call nmake files from Nant so I don't have to go back and rewrite all the build files? Would the task <exec> work? or is there another method? A quick example would be appreciated!
-
Nice it compiles!!!! THANK YOU! Hmmmm thats weird though, I tried that before when you posted that in the last thread, but it didnt work. Now that I have it compiling c++ let me ask one more question. In my helloworld.cpp file, this is how it looks: ********************************************************** <iostream.h> void main() { cout << "Hello World" << endl; } ********************************************************** and my build file looks like this: ********************************************************** <?xml version="1.0"?> <project name="Hello World" default="run"> <property name="debug" value="true"/> <target name="clean" description="remove all generated files"> <delete file="HelloWorld.exe" if="${file::exists('HelloWorld.exe')}" /> <delete file="HelloWorld.pdb" if="${file::exists('HelloWorld.pdb')}" /> </target> <target name="build" description="compiles the source code"> <cl outputdir="build" options="/clr"> <sources> <include name="HelloWorld.cpp" /> </sources> </cl> </target> <target name="run" depends="build"> <exec program="HelloWorld.exe" /> </target> </project> ********************************************************** When I build with this build script, I get alot of errors. What do you see wrong? I appreciate your help!
-
I am really having a hard time building a simple c++ program with Nant. If someone could tell me step by step what I need to do, I would GREATLY appreciate it. I have the latest nightly built version of Nant (0.85, 10/20/1004) and built it successfully on my computer. I looked in the example folder and tried to build the example in c:\nant\examples\solutions\cpp\winforms but my build failed. This is what I got: ********************************************************** C:\nant\examples\Solution\cpp\WinForms>nant NAnt 0.85 (Build 0.85.1754.0; net-1.0.win32; nightly; 10/20/2004) Copyright © 2001-2004 Gerry Shaw http://nant.sourceforge.net Buildfile: file:///C:/nant/examples/Solution/cpp/WinForms/cpp.build Target(s) specified: rebuild clean: [delete] Deleting 5 directories. build: build.winforms: [solution] Starting solution build. [solution] Building 'WinForms' [release] ... [cl] Compiling 1 files to 'C:\nant\examples\Solution\cpp\WinF orms\obj\Release'. BUILD FAILED 'cl' failed to start. The system cannot find the file specified Total time: 1.5 seconds. ********************************************************** I don't understand why cl.exe can't be found. I looked inside, "c:\program files\microsoft visual studio .net 2003\vc7\bin" and found cl.exe. Also in "c:\nant\examples\helloworld" I opened the default.build file and edited so that it can build my simple HelloWorld.cpp file: ********************************************************** <?xml version="1.0"?> <project name="Hello World" default="run"> <property name="basename" value="HelloWorld"/> <property name="debug" value="true"/> <target name="clean"> <delete> <fileset> <include name="${basename}-??.exe"/> <include name="${basename}-??.pdb"/> </fileset> </delete> </target> <target name="build"> <csc target="exe" output="${basename}-cs.exe" debug="${debug}"> <sources> <include name="${basename}.cs"/> </sources> </csc> <jsc target="exe" output="${basename}-js.exe" debug="${debug}"> <sources> <include name="${basename}.js"/> </sources> </jsc> <vbc target="exe" output="${basename}-vb.exe" debug="${debug}"> <sources> <include name="${basename}.vb"/> </sources> </vbc> <cl outputdir="build" options="/clr"> <sources> <include name="${basename}.cpp"/> </sources> </cl> </target> <target name="run" depends="build"> <exec program="${basename}-cs.exe" basedir="."/> <exec program="${basename}-js.exe" basedir="."/> <exec program="${basename}-vb.exe" basedir="."/> <exec program="${basename}-cpp.exe" basedir="."/> </target> </project> ********************************************************** Once I build the file, I get the same build fail message as before stating that cl could not be found. I am pulling all my hair out trying to figure out how to fix this problem. I am running on a .Net 1.1 platform and tried everything. Please HELP! :o
-
Which file do you mean? According to the task help manual provided by NANT says that the task <cl> requires Nant.VisualCppTasks which is located in c:\nant\bin\. The helloworld.cpp is located in c:\nant\e xamples\helloworld folder as well as the bulid script. I just not sure if the script is correct and why this build is failing. :mad:
-
I am new to nant and I am trying to build a simple HelloWorld C++ program. When I build my file, I'm getting this error: ********************************************************** C:\nant\examples\HelloWorld>nant NAnt 0.85 (Build 0.85.1740.0; net-1.0.win32; nightly; 10/6/2004) Copyright © 2001-2004 Gerry Shaw http://nant.sourceforge.net Buildfile: file:///C:/nant/examples/HelloWorld/default.build Target(s) specified: run build: [cl] Compiling 1 files to 'C:\nant\examples\HelloWorld\build'. BUILD FAILED C:\nant\examples\HelloWorld\default.build(31,10): 'cl' failed to start. The system cannot find the file specified Total time: 0.5 seconds. ********************************************************** The build script looks like this: <cl outputdir="build" options="/clr"> <sources> <include name="HelloWorld.cpp" /> </sources> </cl> The c# script works fine: <csc target="exe" output="${basename}-cs.exe" debug="${debug}"> <sources> <include name="${basename}.cs"/> </sources> </csc> Would anyone have any idea to why I might be getting this error. I couldnt find much help online for nant and c++ help. Any kind of hints or guidelines would be greatly appreciated!
-
I am in need of a build tool that will allow me to buld both .Net and java. I am currently looking at ANT and they seem to claim that ANT supports .Net but can't seem to find any information on it. I looked into NANT but it seems that it only supports .Net. Would anyone know if ANT can support .net and java and if so have any good links to find more information or if ANT can't support both, a bulid tool that can. Thanks