Hi All,
Please help!! I am very green in Nant, I have downloaded the final version
of 0.8.3, but could not build it in my machine.
I have a .Net Framework version 1.0.3705 in my PC as well as the the .Net
Studio, when I build the NAnt for the first time I got error with
Nant.VisualCPP.build. I have been stuck with this error for 2 days, please
help me for overcome this...

The following are the log file that show the error.

BIG THANKS TO THOSE WHO REPLY..

Keat-Hau



NAnt version 0.8.4 Copyright (C) 2001-2003 Gerry Shaw
http://nant.sourceforge.net

Buildfile: file:///C:/Research/nant/NAnt.build
     [echo] Using 'net-1.0' Framework

init:


debug:


set-runtime-configuration:

C:\Research\nant\NAnt.build(362,14): Attribute 'force' for <call ... /> is
deprecated.  The <call> task will now always force execution of the
specified target, and its dependencies.

set-net-1.0-runtime-configuration:

C:\Research\nant\NAnt.build(388,10): Attribute 'force' for <call ... /> is
deprecated.  The <call> task will now always force execution of the
specified target, and its dependencies.

set-runtime-configuration-flags:

C:\Research\nant\NAnt.build(376,10): Attribute 'force' for <call ... /> is
deprecated.  The <call> task will now always force execution of the
specified target, and its dependencies.

set-net-1.0-runtime-configuration:

C:\Research\nant\NAnt.build(388,10): Attribute 'force' for <call ... /> is
deprecated.  The <call> task will now always force execution of the
specified target, and its dependencies.

set-runtime-configuration-flags:


build:

     [echo] Build Directory is C:\Research\nant/build/nant-0.8.4-debug
    [mkdir] Creating directory C:\Research\nant/build/nant-0.8.4-debug/bin.
     [copy] Copying 4 files to C:\Research\nant/build/nant-0.8.4-debug/bin.
     [copy] Copying 3 files to C:\Research\nant/build/nant-0.8.4-debug/bin.
     [nant] src/NAnt.Core/NAnt.Core.build build

            Buildfile:
file:///C:/Research/nant/src/NAnt.Core/NAnt.Core.build
            
            build:
            
                  [csc] Compiling 91 files to
C:\Research\nant/build/nant-0.8.4-debug/bin/NAnt.Core.dll.
            
            BUILD SUCCEEDED
            
            Total time: 1.1 seconds.

     [nant] src/NAnt.Console/NAnt.Console.build build

            Buildfile:
file:///C:/Research/nant/src/NAnt.Console/NAnt.Console.build
            
            build:
            
                  [csc] Compiling 3 files to
C:\Research\nant/build/nant-0.8.4-debug/bin/NAnt.exe.
                 [copy] Copying 1 file to C:\Research\nant\src\NAnt.Console.
            
            BUILD SUCCEEDED
            
            Total time: 0.4 seconds.

     [nant] src/NAnt.DotNet/NAnt.DotNet.build build

            Buildfile:
file:///C:/Research/nant/src/NAnt.DotNet/NAnt.DotNet.build
            
            build:
            
                  [csc] Compiling 17 files to
C:\Research\nant/build/nant-0.8.4-debug/bin/NAnt.DotNetTasks.dll.
            
            BUILD SUCCEEDED
            
            Total time: 0.5 seconds.

     [nant] src/NAnt.Zip/NAnt.Zip.build build

            Buildfile: file:///C:/Research/nant/src/NAnt.Zip/NAnt.Zip.build
            
            build:
            
                  [csc] Compiling 4 files to
C:\Research\nant/build/nant-0.8.4-debug/bin/NAnt.ZipTasks.dll.
            
            BUILD SUCCEEDED
            
            Total time: 0.4 seconds.

     [nant] src/NAnt.NUnit/NAnt.NUnit.build build

            Buildfile:
file:///C:/Research/nant/src/NAnt.NUnit/NAnt.NUnit.build
            
            build:
            
                  [csc] Compiling 6 files to
C:\Research\nant/build/nant-0.8.4-debug/bin/NAnt.NUnit.dll.
                  [csc] Compiling 14 files to
C:\Research\nant/build/nant-0.8.4-debug/bin/NAnt.NUnit1Tasks.dll.
                  [csc] Compiling 6 files to
C:\Research\nant/build/nant-0.8.4-debug/bin/NAnt.NUnit2Tasks.dll.
            
            BUILD SUCCEEDED
            
            Total time: 1.2 seconds.

     [nant] src/NAnt.SourceControl/NAnt.SourceControl.build build

            Buildfile:
file:///C:/Research/nant/src/NAnt.SourceControl/NAnt.SourceControl.build
            
            build:
            
                  [csc] Compiling 4 files to
C:\Research\nant/build/nant-0.8.4-debug/bin/NAnt.SourceControlTasks.dll.
            
            BUILD SUCCEEDED
            
            Total time: 0.4 seconds.

     [nant] src/NAnt.Win32/NAnt.Win32.build build

            Buildfile:
file:///C:/Research/nant/src/NAnt.Win32/NAnt.Win32.build
            
            build:
            
                  [csc] Compiling 7 files to
C:\Research\nant/build/nant-0.8.4-debug/bin/NAnt.Win32Tasks.dll.
            
            BUILD SUCCEEDED
            
            Total time: 0.4 seconds.

     [nant] src/NAnt.VSNet/NAnt.VSNet.build build

            Buildfile:
file:///C:/Research/nant/src/NAnt.VSNet/NAnt.VSNet.build
            
            build:
            
                  [csc] Compiling 12 files to
C:\Research\nant/build/nant-0.8.4-debug/bin/NAnt.VSNetTasks.dll.
            
            BUILD SUCCEEDED
            
            Total time: 0.5 seconds.

     [nant] src/NAnt.VisualCpp/NAnt.VisualCpp.build build

            Buildfile:
file:///C:/Research/nant/src/NAnt.VisualCpp/NAnt.VisualCpp.build
            
            build:
            
                  [csc] Compiling 8 files to
C:\Research\nant/build/nant-0.8.4-debug/bin/NAnt.VisualCppTasks.dll.
            
            BUILD SUCCEEDED
            
            Total time: 0.4 seconds.

     [nant] tests/NAnt.Core/NAnt.Core.build build

            Buildfile:
file:///C:/Research/nant/tests/NAnt.Core/NAnt.Core.build
            
            build:
            
                  [csc] Compiling 37 files to
C:\Research\nant/build/nant-0.8.4-debug/bin/NAnt.Core.Tests.dll.
            
            BUILD SUCCEEDED
            
            Total time: 0.5 seconds.

     [nant] tests/NAnt.Console/NAnt.Console.build build

            Buildfile:
file:///C:/Research/nant/tests/NAnt.Console/NAnt.Console.build
            
            build:
            
                  [csc] Compiling 2 files to
C:\Research\nant/build/nant-0.8.4-debug/bin/NAnt.Tests.dll.
            
            BUILD SUCCEEDED
            
            Total time: 0.4 seconds.

     [nant] tests/NAnt.DotNet/NAnt.DotNet.build build

            Buildfile:
file:///C:/Research/nant/tests/NAnt.DotNet/NAnt.DotNet.build
            
            build:
            
                  [csc] Compiling 5 files to
C:\Research\nant/build/nant-0.8.4-debug/bin/NAnt.DotNet.Tests.dll.
            
            BUILD SUCCEEDED
            
            Total time: 0.4 seconds.

     [nant] tests/NAnt.Zip/NAnt.Zip.build build

            Buildfile:
file:///C:/Research/nant/tests/NAnt.Zip/NAnt.Zip.build
            
            build:
            
                  [csc] Compiling 3 files to
C:\Research\nant/build/nant-0.8.4-debug/bin/NAnt.Zip.Tests.dll.
            
            BUILD SUCCEEDED
            
            Total time: 0.4 seconds.

     [nant] tests/NAnt.VisualCpp/NAnt.VisualCpp.build build

            Buildfile:
file:///C:/Research/nant/tests/NAnt.VisualCpp/NAnt.VisualCpp.build
            
            build:
            
                  [csc] Compiling 3 files to
C:\Research\nant/build/nant-0.8.4-debug/bin/NAnt.VisualCpp.Tests.dll.
            
            BUILD SUCCEEDED
            
            Total time: 0.4 seconds.

     [nant] tests/NAnt.VSNet/NAnt.VSNet.build build

            Buildfile:
file:///C:/Research/nant/tests/NAnt.VSNet/NAnt.VSNet.build
            
            build:
            
                  [csc] Compiling 2 files to
C:\Research\nant/build/nant-0.8.4-debug/bin/NAnt.VSNet.Tests.dll.
            
            BUILD SUCCEEDED
            
            Total time: 0.4 seconds.

     [nant] tests/NAnt.Win32/NAnt.Win32.build build

            Buildfile:
file:///C:/Research/nant/tests/NAnt.Win32/NAnt.Win32.build
            
            build:
            
                  [csc] Compiling 2 files to
C:\Research\nant/build/nant-0.8.4-debug/bin/NAnt.Win32.Tests.dll.
            
            BUILD SUCCEEDED
            
            Total time: 0.4 seconds.


test:

     [echo] Running unit tests with just built version of NAnt.
     [exec] C:\Research\nant/build/nant-0.8.4-debug/bin/NAnt.exe
-buildfile:NAnt.build debug self-test -D:project.version=0.8.4 -k:net-1.0
            NAnt version 0.8.4 Copyright (C) 2001-2003 Gerry Shaw
            http://nant.sourceforge.net
            
            Buildfile: file:///C:/Research/nant/NAnt.build
                 [echo] Using 'net-1.0' Framework
            
            debug:
            
            
            init:
            
            
            debug:
            
            
            set-runtime-configuration:
            
            C:\Research\nant\NAnt.build(362,14): Attribute 'force' for <call
... /> is deprecated.  The <call> task will now always force execution of
the specified target, and its dependencies.
            
            set-net-1.0-runtime-configuration:
            
            C:\Research\nant\NAnt.build(388,10): Attribute 'force' for <call
... /> is deprecated.  The <call> task will now always force execution of
the specified target, and its dependencies.
            
            set-runtime-configuration-flags:
            
            C:\Research\nant\NAnt.build(376,10): Attribute 'force' for <call
... /> is deprecated.  The <call> task will now always force execution of
the specified target, and its dependencies.
            
            set-net-1.0-runtime-configuration:
            
            C:\Research\nant\NAnt.build(388,10): Attribute 'force' for <call
... /> is deprecated.  The <call> task will now always force execution of
the specified target, and its dependencies.
            
            set-runtime-configuration-flags:
            
            
            self-test:
            
                 [echo] testing with config
'C:\Research\nant\build\nant-0.8.4-debug\bin\nant.exe.config'
                 [nant] tests/NAnt.Console/NAnt.Console.build test
            
                        Buildfile:
file:///C:/Research/nant/tests/NAnt.Console/NAnt.Console.build
                        
                        build:
                        
                        
                        test:
                        
                           [nunit2] Tests run: 9, Failures: 0, Not run: 0,
Time: 1.28125 seconds
            
            
                        
                        BUILD SUCCEEDED
                        
                        Total time: 1.5 seconds.
            
                 [nant] tests/NAnt.Core/NAnt.Core.build test
            
                        Buildfile:
file:///C:/Research/nant/tests/NAnt.Core/NAnt.Core.build
                        
                        build:
                        
                        
                        test:
                        
                           [nunit2] 
                           [nunit2] BUILD SUCCEEDED
                           [nunit2] 
                           [nunit2] Tests run: 149, Failures: 0, Not run: 0,
Time: 6.203125 seconds
            
            
                        
                        BUILD SUCCEEDED
                        
                        Total time: 6.4 seconds.
            
                 [nant] tests/NAnt.DotNet/NAnt.DotNet.build test
            
                        Buildfile:
file:///C:/Research/nant/tests/NAnt.DotNet/NAnt.DotNet.build
                        
                        build:
                        
                        
                        test:
                        
                           [nunit2] Tests run: 10, Failures: 0, Not run: 0,
Time: 2.25 seconds
            
            
                        
                        BUILD SUCCEEDED
                        
                        Total time: 2.4 seconds.
            
                 [nant] tests/NAnt.Zip/NAnt.Zip.build test
            
                        Buildfile:
file:///C:/Research/nant/tests/NAnt.Zip/NAnt.Zip.build
                        
                        build:
                        
                        
                        test:
                        
                           [nunit2] Tests run: 2, Failures: 0, Not run: 0,
Time: 0.84375 seconds
            
            
                        
                        BUILD SUCCEEDED
                        
                        Total time: 1 seconds.
            
                 [nant] tests/NAnt.VisualCpp/NAnt.VisualCpp.build test
            
                        Buildfile:
file:///C:/Research/nant/tests/NAnt.VisualCpp/NAnt.VisualCpp.build
                        
                        build:
                        
                        
                        test:
                        
                           [nunit2] Tests run: 8, Failures: 8, Not run: 0,
Time: 1.4375 seconds
            
            Failures:
            1)
Tests.NAnt.VisualCpp.Tasks.ClTaskTest_HelloWorld.Test_HelloWorldCompile :
Error Executing Project
 
C:\DOCUME~1\kcheong\LOCALS~1\Temp\Tests.NAnt.VisualCpp.Tasks.ClTaskTest_Hell
oWorld\test.build(3,22):
             [cl] cl failed to start.
               at Tests.NAnt.Core.BuildTestBase.ExecuteProject(Project p) in
C:\Research\nant\tests\NAnt.Core\BuildTestBase.cs:line 138
               at Tests.NAnt.Core.BuildTestBase.RunBuild(String xml, Level
level) in C:\Research\nant\tests\NAnt.Core\BuildTestBase.cs:line 90
               at Tests.NAnt.Core.BuildTestBase.RunBuild(String xml) in
C:\Research\nant\tests\NAnt.Core\BuildTestBase.cs:line 65
               at
Tests.NAnt.VisualCpp.Tasks.ClTaskTest_HelloWorld.Test_HelloWorldCompile() in
C:\Research\nant\tests\NAnt.VisualCpp\Tasks\ClTaskTest.cs:line 64
            
            2)
Tests.NAnt.VisualCpp.Tasks.ClTaskTest_CompileOnDemand.Test_BuildAll : Error
Executing Project
 
C:\DOCUME~1\kcheong\LOCALS~1\Temp\Tests.NAnt.VisualCpp.Tasks.ClTaskTest_Comp
ileOnDemand\test.build(3,22):
             [cl] cl failed to start.
               at Tests.NAnt.Core.BuildTestBase.ExecuteProject(Project p) in
C:\Research\nant\tests\NAnt.Core\BuildTestBase.cs:line 138
               at Tests.NAnt.Core.BuildTestBase.RunBuild(String xml, Level
level) in C:\Research\nant\tests\NAnt.Core\BuildTestBase.cs:line 90
               at Tests.NAnt.Core.BuildTestBase.RunBuild(String xml) in
C:\Research\nant\tests\NAnt.Core\BuildTestBase.cs:line 65
               at
Tests.NAnt.VisualCpp.Tasks.ClTaskTest_CompileOnDemand.Test_BuildAll() in
C:\Research\nant\tests\NAnt.VisualCpp\Tasks\ClTaskTest.cs:line 139
            
            3)
Tests.NAnt.VisualCpp.Tasks.ClTaskTest_CompileOnDemand.Test_BuildNothingChang
ed : Error Executing Project
 
C:\DOCUME~1\kcheong\LOCALS~1\Temp\Tests.NAnt.VisualCpp.Tasks.ClTaskTest_Comp
ileOnDemand\test.build(3,22):
             [cl] cl failed to start.
               at Tests.NAnt.Core.BuildTestBase.ExecuteProject(Project p) in
C:\Research\nant\tests\NAnt.Core\BuildTestBase.cs:line 138
               at Tests.NAnt.Core.BuildTestBase.RunBuild(String xml, Level
level) in C:\Research\nant\tests\NAnt.Core\BuildTestBase.cs:line 90
               at Tests.NAnt.Core.BuildTestBase.RunBuild(String xml) in
C:\Research\nant\tests\NAnt.Core\BuildTestBase.cs:line 65
               at
Tests.NAnt.VisualCpp.Tasks.ClTaskTest_CompileOnDemand.Test_BuildNothingChang
ed() in C:\Research\nant\tests\NAnt.VisualCpp\Tasks\ClTaskTest.cs:line 151
            
            4)
Tests.NAnt.VisualCpp.Tasks.ClTaskTest_CompileOnDemand.Test_BuildSourceChange
d : Error Executing Project
 
C:\DOCUME~1\kcheong\LOCALS~1\Temp\Tests.NAnt.VisualCpp.Tasks.ClTaskTest_Comp
ileOnDemand\test.build(3,22):
             [cl] cl failed to start.
               at Tests.NAnt.Core.BuildTestBase.ExecuteProject(Project p) in
C:\Research\nant\tests\NAnt.Core\BuildTestBase.cs:line 138
               at Tests.NAnt.Core.BuildTestBase.RunBuild(String xml, Level
level) in C:\Research\nant\tests\NAnt.Core\BuildTestBase.cs:line 90
               at Tests.NAnt.Core.BuildTestBase.RunBuild(String xml) in
C:\Research\nant\tests\NAnt.Core\BuildTestBase.cs:line 65
               at
Tests.NAnt.VisualCpp.Tasks.ClTaskTest_CompileOnDemand.Test_BuildAll() in
C:\Research\nant\tests\NAnt.VisualCpp\Tasks\ClTaskTest.cs:line 139
               at
Tests.NAnt.VisualCpp.Tasks.ClTaskTest_CompileOnDemand.Test_BuildSourceChange
d() in C:\Research\nant\tests\NAnt.VisualCpp\Tasks\ClTaskTest.cs:line 159
            
            5)
Tests.NAnt.VisualCpp.Tasks.LinkTaskTest_HelloWorld.Test_HelloWorld : Error
Executing Project
 
C:\DOCUME~1\kcheong\LOCALS~1\Temp\Tests.NAnt.VisualCpp.Tasks.LinkTaskTest_He
lloWorld\test.build(3,22):
             [cl] cl failed to start.
               at Tests.NAnt.Core.BuildTestBase.ExecuteProject(Project p) in
C:\Research\nant\tests\NAnt.Core\BuildTestBase.cs:line 138
               at Tests.NAnt.Core.BuildTestBase.RunBuild(String xml, Level
level) in C:\Research\nant\tests\NAnt.Core\BuildTestBase.cs:line 90
               at Tests.NAnt.Core.BuildTestBase.RunBuild(String xml) in
C:\Research\nant\tests\NAnt.Core\BuildTestBase.cs:line 65
               at
Tests.NAnt.VisualCpp.Tasks.LinkTaskTest_HelloWorld.Test_HelloWorld() in
C:\Research\nant\tests\NAnt.VisualCpp\Tasks\LinkTaskTest.cs:line 73
            
            6)
Tests.NAnt.VisualCpp.Tasks.LinkTaskTest_CompileOnDemand.Test_BuildAll :
Error Executing Project
 
C:\DOCUME~1\kcheong\LOCALS~1\Temp\Tests.NAnt.VisualCpp.Tasks.LinkTaskTest_Co
mpileOnDemand\test.build(3,22):
             [cl] cl failed to start.
               at Tests.NAnt.Core.BuildTestBase.ExecuteProject(Project p) in
C:\Research\nant\tests\NAnt.Core\BuildTestBase.cs:line 138
               at Tests.NAnt.Core.BuildTestBase.RunBuild(String xml, Level
level) in C:\Research\nant\tests\NAnt.Core\BuildTestBase.cs:line 90
               at Tests.NAnt.Core.BuildTestBase.RunBuild(String xml) in
C:\Research\nant\tests\NAnt.Core\BuildTestBase.cs:line 65
               at
Tests.NAnt.VisualCpp.Tasks.LinkTaskTest_CompileOnDemand.Test_BuildAll() in
C:\Research\nant\tests\NAnt.VisualCpp\Tasks\LinkTaskTest.cs:line 171
            
            7)
Tests.NAnt.VisualCpp.Tasks.LinkTaskTest_CompileOnDemand.Test_BuildNothingCha
nged : Error Executing Project
 
C:\DOCUME~1\kcheong\LOCALS~1\Temp\Tests.NAnt.VisualCpp.Tasks.LinkTaskTest_Co
mpileOnDemand\test.build(3,22):
             [cl] cl failed to start.
               at Tests.NAnt.Core.BuildTestBase.ExecuteProject(Project p) in
C:\Research\nant\tests\NAnt.Core\BuildTestBase.cs:line 138
               at Tests.NAnt.Core.BuildTestBase.RunBuild(String xml, Level
level) in C:\Research\nant\tests\NAnt.Core\BuildTestBase.cs:line 90
               at Tests.NAnt.Core.BuildTestBase.RunBuild(String xml) in
C:\Research\nant\tests\NAnt.Core\BuildTestBase.cs:line 65
               at
Tests.NAnt.VisualCpp.Tasks.LinkTaskTest_CompileOnDemand.Test_BuildNothingCha
nged() in C:\Research\nant\tests\NAnt.VisualCpp\Tasks\LinkTaskTest.cs:line
182
            
            8)
Tests.NAnt.VisualCpp.Tasks.LinkTaskTest_CompileOnDemand.Test_BuildSourceChan
ged : Error Executing Project
 
C:\DOCUME~1\kcheong\LOCALS~1\Temp\Tests.NAnt.VisualCpp.Tasks.LinkTaskTest_Co
mpileOnDemand\test.build(3,22):
             [cl] cl failed to start.
               at Tests.NAnt.Core.BuildTestBase.ExecuteProject(Project p) in
C:\Research\nant\tests\NAnt.Core\BuildTestBase.cs:line 138
               at Tests.NAnt.Core.BuildTestBase.RunBuild(String xml, Level
level) in C:\Research\nant\tests\NAnt.Core\BuildTestBase.cs:line 90
               at Tests.NAnt.Core.BuildTestBase.RunBuild(String xml) in
C:\Research\nant\tests\NAnt.Core\BuildTestBase.cs:line 65
               at
Tests.NAnt.VisualCpp.Tasks.LinkTaskTest_CompileOnDemand.Test_BuildAll() in
C:\Research\nant\tests\NAnt.VisualCpp\Tasks\LinkTaskTest.cs:line 171
               at
Tests.NAnt.VisualCpp.Tasks.LinkTaskTest_CompileOnDemand.Test_BuildSourceChan
ged() in C:\Research\nant\tests\NAnt.VisualCpp\Tasks\LinkTaskTest.cs:line
190
            
            
                        
                        BUILD FAILED
                        
                        Tests Failed
                        
                        Total time: 1.6 seconds.
            
            
            BUILD FAILED
            
            Nested build failed.  Refer to build log for exact reason.
            
            Total time: 13.2 seconds.
            

BUILD FAILED

C:\Research\nant\NAnt.build(107,10):
 External Program Failed:
C:\Research\nant/build/nant-0.8.4-debug/bin/NAnt.exe (return code was 1)

Total time: 22.3 seconds.



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to