The
following error occurred when I tried to do a simple solution
build:
NAnt
0.84 (Build 0.84.1455.0; net-1.0.win32; release; 12/26/2003)
Copyright (C) 2001-2003 Gerry Shaw
http://nant.sourceforge.net
Copyright (C) 2001-2003 Gerry Shaw
http://nant.sourceforge.net
Buildfile: file:///C:/Pragmatech/buildall.build
Target(s) specified: build
Target(s) specified: build
build:
[solution] Starting solution
build.
[solution] Included projects:
[solution] - C:\Pragmatech\common\Common.csproj
[solution] Loading projects...
[solution] Loading project 'C:\Pragmatech\common\Common.csproj'.
[solution] Gathering additional dependencies...
[solution] Fixing up references...
[solution] Building Common [release]...
[solution] Copying references:
[solution] - System.Data
[copy] Copying 0 files to C:\Pragmatech\common\bin\Release\.
[solution] - System
[copy] Copying 0 files to C:\Pragmatech\common\bin\Release\.
[solution] - System.XML
[copy] Copying 0 files to C:\Pragmatech\common\bin\Release\.
[solution] Starting compiler...
[solution] Included projects:
[solution] - C:\Pragmatech\common\Common.csproj
[solution] Loading projects...
[solution] Loading project 'C:\Pragmatech\common\Common.csproj'.
[solution] Gathering additional dependencies...
[solution] Fixing up references...
[solution] Building Common [release]...
[solution] Copying references:
[solution] - System.Data
[copy] Copying 0 files to C:\Pragmatech\common\bin\Release\.
[solution] - System
[copy] Copying 0 files to C:\Pragmatech\common\bin\Release\.
[solution] - System.XML
[copy] Copying 0 files to C:\Pragmatech\common\bin\Release\.
[solution] Starting compiler...
BUILD
FAILED
INTERNAL
ERROR
System.ComponentModel.Win32Exception: The system cannot
find the file specified
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
at NAnt.VSNet.Project.Compile(String configuration, ArrayList alCSCArguments, String strLogFile, Boolean bVerbose, Boolean bShowCommands)
at NAnt.VSNet.Solution.Compile(String configuration, ArrayList compilerArguments, String logFile, Boolean verbose, Boolean showCommands)
at NAnt.VSNet.Tasks.SolutionTask.ExecuteTask()
at NAnt.Core.Task.Execute()
at NAnt.Core.Target.Execute()
at NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies)
at NAnt.Core.Project.Execute()
at NAnt.Core.Project.Run()
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
at NAnt.VSNet.Project.Compile(String configuration, ArrayList alCSCArguments, String strLogFile, Boolean bVerbose, Boolean bShowCommands)
at NAnt.VSNet.Solution.Compile(String configuration, ArrayList compilerArguments, String logFile, Boolean verbose, Boolean showCommands)
at NAnt.VSNet.Tasks.SolutionTask.ExecuteTask()
at NAnt.Core.Task.Execute()
at NAnt.Core.Target.Execute()
at NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies)
at NAnt.Core.Project.Execute()
at NAnt.Core.Project.Run()
Please
send bug report to [EMAIL PROTECTED].
Total time:
0.9 seconds.
My build
file looks like this:
<?xml
version="1.0"?>
<project name="BuildAll" default="build">
<project name="BuildAll" default="build">
<target name="build" description="compiles the source
code">
<solution configuration="release"
verbose="true">
<projects>
<includes name="${nant.project.basedir}\common\Common.csproj" />
</projects>
</solution>
<projects>
<includes name="${nant.project.basedir}\common\Common.csproj" />
</projects>
</solution>
</target>
</project>
Needless to say, the
project build flawlessly when built w/in the Visual Studio
IDE.
The error occurs
when I build from a regular command prompt and from the "Visual Studio .NET
2003" command prompt.
Leo
Steffens
Principal Software Engineer
Pragmatech Software
603.249.1477 (voice)
603.249.1401 (fax)