Hi,
I am new to Nant so forgive me if this question seems rather simple. I have downloaded the final release of nant 0.8.3 and extracted it to C:\nant. I have added c:\nant\bin to the system path as per the instructions. I have then opened the nant.tests.csproj file using VS.NET 2003 and converted it to the 1.1 framework. I set the default build in the build file to net-1.1. I save and close the project. I then open the command prompt, navigate to c:\nant and type "nant". However, although much of the Nant application is built, the build fails with the following message:
[nant] tests/NAnt.Console/NAnt.Console.build build
Buildfile: file:///C:/nant/tests/NAnt.Console/NAnt.Console.build
build:
[csc] Compiling 2 files to C:\nant\build\nant-0.8.3.50105-debu
g\bin\NAnt.Tests.dll.
c:\nant\tests\NAnt.Console\NAntTest.cs(202,13): error CS
1010: Newline in constant
[Core.Task:csc Generated Exception - [] <>]
Exception: NAnt.Core.BuildException
Message: C:\nant\tests\NAnt.Console\NAnt.Console.build(13,10):
External Program Failed: C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\csc.exe (
return code was 1)
Source: NAnt.Core
at NAnt.Core.Tasks.ExternalProgramBase.ExecuteTask()
at NAnt.DotNet.Tasks.CompilerBase.ExecuteTask()
at NAnt.Core.Task.Execute()
[Core.Project:Build failed. - [] <>]
Exception: NAnt.Core.BuildException
Message: C:\nant\tests\NAnt.Console\NAnt.Console.build(13,10):
External Program Failed: C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\csc.exe (
return code was 1)
Source: NAnt.Core
at NAnt.Core.Tasks.ExternalProgramBase.ExecuteTask()
at NAnt.DotNet.Tasks.CompilerBase.ExecuteTask()
at NAnt.Core.Task.Execute()
at NAnt.Core.Target.Execute()
at NAnt.Core.Project.Execute(String targetName)
at NAnt.Core.Project.Execute()
at NAnt.Core.Project.Run()
Total time: 0 seconds.
BUILD FAILED
C:\nant\tests\NAnt.Console\NAnt.Console.build(13,10):
External Program Failed: C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\csc.exe (
return code was 1)
[Core.Task:nant Generated Exception - [] <>]
Exception: NAnt.Core.BuildException
Message: Nested build failed. Refer to build log for exact reason.
Source: NAnt.Core
at NAnt.Core.Tasks.NAntTask.ExecuteTask()
at NAnt.Core.Task.Execute()
[Core.Project:Build failed. - [] <>]
Exception: NAnt.Core.BuildException
Message: Nested build failed. Refer to build log for exact reason.
Source: NAnt.Core
at NAnt.Core.Tasks.NAntTask.ExecuteTask()
at NAnt.Core.Task.Execute()
at NAnt.Core.Target.Execute()
at NAnt.Core.Target.Execute()
at NAnt.Core.Project.Execute(String targetName)
at NAnt.Core.Project.Execute()
at NAnt.Core.Project.Run()
Total time: 12 seconds.
BUILD FAILED
Nested build failed. Refer to build log for exact reason.
Can anyone provide some clues to where I am going wrong?
Glenn
Glenn Wilson