Shirome,
 
Is there a reason why you are using NAnt 0.8.3?   Is it possible for you to use the latest nightly build (which is NAnt 0.85 - Sept 20, 2004 )?   If not, could you try it with NAnt 0.84? 
 
Felice
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Shirome Mahendranathan
Sent: Wednesday, September 22, 2004 8:15 AM
To: [EMAIL PROTECTED]
Subject: [Nant-users] The solution task fails

Hi
I am creating a very basic build file to compile a very simple MFC application (C++ application).
I can compile this code using Visual studio .net with out any problem. I am using the "Nant" build (nant-0.8.3.zip)
What I am missing here? Do I need to set any other environment variables? Please help me
Thanks in advance.
Shirome
 
Path
PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Mi
crosoft Visual Studio\Common\Tools\WinNT;C:\Program Files\Microsoft Visual Studi
o\Common\MSDev98\Bin;C:\Program Files\Microsoft Visual Studio\Common\Tools;C:\Pr
ogram Files\Microsoft Visual Studio\VC98\bin;C:\Program Files\Microsoft Visual S
tudio\Common\VSS\win32;C:\Nant\bin;
 
 
Build File
 
<?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 configuration="Release" verbose="true" outputdir="D:\source\Test\Solution1\Release" solutionfile="D:\source\Test\Solution1\Solution1.sln">
   <projects>
    <includes name="D:\source\Test\Solution1\Test\Test.vcproj" /> 
   </projects>
  </solution>     
 </target>
</project>
 
 
Error Message
D:\source\Nant>nant -l:D:\source\Nant\test.log -buildfile:D:\source\Nant\compile
.build
NAnt version 0.8.3 Copyright (C) 2001-2003 Gerry Shaw
http://nant.sourceforge.net
 
 
CompileSourceCode:
 
     [echo] Trying to compile source code.
 [solution] Starting solution build.
 [solution] Included projects:
 [solution]  - D:\source\Test\Solution1\Test\Test.vcproj
 [solution] Reference projects:
[Core.Task:solution Generated Exception  - [] <>]
Exception: System.NullReferenceException
Message: Object reference not set to an instance of an object.
Source: NAnt.VSNetTasks
   at NAnt.VSNet.Tasks.ProjectSettings..ctor(XmlElement elemRoot, XmlElement ele
mSettings, TempFileCollection tfc)
   at NAnt.VSNet.Tasks.Project.LoadGUID(String strFilename, TempFileCollection t
fc)
   at NAnt.VSNet.Tasks.Solution.LoadProjectGUIDs(ArrayList alProjects, Boolean b
IsReferenceProject)
   at NAnt.VSNet.Tasks.Solution..ctor(String strSolutionFilename, ArrayList alAd
ditionalProjects, ArrayList alReferenceProjects, TempFileCollection tfc, Task na
nttask)
   at NAnt.VSNet.Tasks.SolutionTask.ExecuteTask()
   at NAnt.Core.Task.Execute()
 
[Core.Project:Build failed.  - [] <>]
Exception: System.NullReferenceException
Message: Object reference not set to an instance of an object.
Source: NAnt.VSNetTasks
   at NAnt.VSNet.Tasks.ProjectSettings..ctor(XmlElement elemRoot, XmlElement ele
mSettings, TempFileCollection tfc)
   at NAnt.VSNet.Tasks.Project.LoadGUID(String strFilename, TempFileCollection t
fc)
   at NAnt.VSNet.Tasks.Solution.LoadProjectGUIDs(ArrayList alProjects, Boolean b
IsReferenceProject)
   at NAnt.VSNet.Tasks.Solution..ctor(String strSolutionFilename, ArrayList alAd
ditionalProjects, ArrayList alReferenceProjects, TempFileCollection tfc, Task na
nttask)
   at NAnt.VSNet.Tasks.SolutionTask.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: 0 seconds.
 
BUILD FAILED
 
INTERNAL ERROR
 
System.NullReferenceException: Object reference not set to an instance of an obj
ect.
   at NAnt.VSNet.Tasks.ProjectSettings..ctor(XmlElement elemRoot, XmlElement ele
mSettings, TempFileCollection tfc)
   at NAnt.VSNet.Tasks.Project.LoadGUID(String strFilename, TempFileCollection t
fc)
   at NAnt.VSNet.Tasks.Solution.LoadProjectGUIDs(ArrayList alProjects, Boolean b
IsReferenceProject)
   at NAnt.VSNet.Tasks.Solution..ctor(String strSolutionFilename, ArrayList alAd
ditionalProjects, ArrayList alReferenceProjects, TempFileCollection tfc, Task na
nttask)
   at NAnt.VSNet.Tasks.SolutionTask.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()
 
Please send bug report to [EMAIL PROTECTED].
 

D:\source\Nant>pause
Press any key to continue . . .
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Reply via email to