Hello
I am new to Nant and using the latest build
nightly build (0.85). I am trying to build a simple visual C++
application using solution task.
It compiles fine with out any problem, but it is
not creating the executables.
But if I use IDE or calling through a command line
argument such as
<exec program="C:\Program
Files\Microsoft Visual Studio .NET\Common7\IDE\devenv.exe"
commandline="D:\Test\Solution1\Solution1.sln /rebuild DEBUG /out devenv.log"
/>
it creates the executables and works fine
too.
Can I use the solution task to compile visual C++
projects?
If so what I am missing here.
Here is my sample build file and the build
results.
Thanks in advance
Shirome
<?xml version="1.0"?>
<project name="Prototype build" default="build"
basedir=".">
<property name="nant.settings.currentframework" value="net-1.0"/> <target name="build" depends="CompileSourceCode"> <echo message="Testing"/> </target> <target
name="CompileSourceCode">
<echo message="Trying to compile source code."/> <solution
outputdir="D:\Test\Solution1\TestProject\Debug" configuration="Debug" verbose="true" solutionfile="D:\Test\Solution1\Solution1.sln"> </solution> <!-- This one works fine and
creates an executable as well.
<exec program="C:\Program Files\Microsoft Visual Studio .NET\Common7\IDE\devenv.exe" commandline="D:\Test\Solution1\Solution1.sln /rebuild DEBUG /out devenv.log" /> --> </target>
</project> D:\source\Nant>nant -l:D:\source\Nant\test.log
-buildfile:D:\source\Nant\Compile
.build NAnt 0.85 (Build 0.85.1732.0; net-1.0.win32; nightly; 9/28/2004) Copyright (C) 2001-2004 Gerry Shaw http://nant.sourceforge.net [loadtasks] Failure scanning
"C:\Nant\bin\NAnt.Contrib.Tasks.dll" for extensions
. One or more of the types in the assembly unable to load. [loadtasks] Failure scanning "C:\Nant\bin\NAnt.Xsd.Tasks.dll" for extensions. On e or more of the types in the assembly unable to load. Buildfile: file:///D:/source/Nant/Compile.build Target(s) specified: build [loadtasks] Scanning assembly "NAnt.VSNetTasks" for
extensions.
CompileSourceCode:
[echo] Trying to compile
source code.
[solution] Starting solution build. [solution] Loading projects... [solution] Loading project 'D:\Test\Solution1\TestProject\TestProject.vcproj'. [solution] Gathering additional dependencies... [solution] Fixing up references... [solution] Building 'TestProject' [Debug] ... [cl] 'D:\Test\Solution1\TestProject\Debug\stdafx.obj' does no t exist, recompiling. [cl] Compiling 1 files to 'D:\Test\Solution1\TestProject\Debu g'. [cl] Contents of C:\DOCUME~1\user\LOCALS~1\Temp\tmp191.tmp. [cl] /c [cl] /Fd"D:\Test\Solution1\TestProject\Debug/" [cl] /Fo"D:\Test\Solution1\TestProject\Debug/" [cl] "stdafx.cpp" [cl] /D "_MBCS" [cl] [cl] Starting 'cl (@"C:\DOCUME~1\user\LOCALS~1\Temp\tmp191.tm p" /D WIN32 /D _WINDOWS /D _DEBUG /Yc"StdAfx.h" /Fp"Debug/Debug.pch" /MDd /W3 /Z I /Od /nologo)' in 'D:\Test\Solution1\TestProject' [cl] stdafx.cpp [cl] c:\program files\microsoft visual studio\vc98\mfc\includ e\afxv_w32.h(119) : warning C4005: '_WIN32_WINDOWS' : macro redefinition [cl] d:\test\solution1\testproject\stdafx.h(22) : see previous definition of '_WIN32_WINDOWS' [cl] 'D:\Test\Solution1\TestProject\Debug\TestProjectView.obj ' does not exist, recompiling. [cl] Compiling 5 files to 'D:\Test\Solution1\TestProject\Debu g'. [cl] Contents of C:\DOCUME~1\user\LOCALS~1\Temp\tmp192.tmp. [cl] /c [cl] /Fd"D:\Test\Solution1\TestProject\Debug/" [cl] /Fo"D:\Test\Solution1\TestProject\Debug/" [cl] "TestProjectView.cpp" [cl] "MainFrm.cpp" [cl] "TestProject.cpp" [cl] "TestProjectDoc.cpp" [cl] "ChildFrm.cpp" [cl] /D "_MBCS" [cl] [cl] Starting 'cl (@"C:\DOCUME~1\user\LOCALS~1\Temp\tmp192.tm p" /D WIN32 /D _WINDOWS /D _DEBUG /Yu"StdAfx.h" /Fp"Debug/Debug.pch" /MDd /W3 /Z I /Od /nologo)' in 'D:\Test\Solution1\TestProject' [cl] TestProjectView.cpp [cl] MainFrm.cpp [cl] TestProject.cpp [cl] TestProjectDoc.cpp [cl] ChildFrm.cpp [cl] Generating Code... build:
[echo]
Testing
BUILD SUCCEEDED
Total time: 3.3 seconds.
D:\source\Nant>pause Press any key to continue . . . |
- [Nant-users] (no subject) Shirome Mahendranathan
- [Nant-users] (no subject) Roman Rozinov
- RE: [Nant-users] (no subject) Gert Driesen
- [Nant-users] (no subject) Mauro Ciaccio
- Re: [Nant-users] (no subject) Gary Feldman
- RE: [Nant-users] (no subject) Foster, Richard - PAL
- [Nant-users] (no subject) Richard Griffiths
- Re: [Nant-users] (no subject) Gary Feldman
- [Nant-users] (no subject) Sachin Shriram Gedam
- Re: [Nant-users] (no subject) Merrill Cornish
- [Nant-users] (no subject) Sheikh Nabeel Moeen