I'm getting an error when attempting to build a web project. The build file is simple:
<project name="ProCard.Centre.MasterBuild" default="Release">
<property name="build.basedir" value="bin" />
<target name="Release" depends="Release.RefDir" />
<target name="Release.RefDir">
<property name="build.dir" value="${build.basedir}\Release" />
<property name="File.Sln" value="ProCard.Centre.Web.sln" />
<property name="Config.Target" value="release" />
<call target="Build.Release" />
</target>
<target name="setup">
<mkdir dir="${build.dir}" />
</target>
<target name="Build.Release" depends="setup">
<solution solutionfile="${File.Sln}" configuration="Release" />
</target>
</project>
<property name="build.basedir" value="bin" />
<target name="Release" depends="Release.RefDir" />
<target name="Release.RefDir">
<property name="build.dir" value="${build.basedir}\Release" />
<property name="File.Sln" value="ProCard.Centre.Web.sln" />
<property name="Config.Target" value="release" />
<call target="Build.Release" />
</target>
<target name="setup">
<mkdir dir="${build.dir}" />
</target>
<target name="Build.Release" depends="setup">
<solution solutionfile="${File.Sln}" configuration="Release" />
</target>
</project>
All of the resources (lots of them) print to the screen and then the following error is displayed:
INTERNAL ERROR
System.NullReferenceException: Object reference not set to an instance of an object.
at SourceForge.NAnt.Tasks.Project.Load(Solution sln, String strFilename)
at SourceForge.NAnt.Tasks.Solution.LoadProjects()
at SourceForge.NAnt.Tasks.Solution..ctor(String strSolutionFilename, ArrayList alAdditionalProjects, ArrayList alRefe
renceProjects, Task nanttask)
at SourceForge.NAnt.Tasks.SolutionTask.ExecuteTask()
at SourceForge.NAnt.Task.Execute()
at SourceForge.NAnt.Target.Execute()
at SourceForge.NAnt.Project.Execute(String targetName)
at SourceForge.NAnt.Tasks.CallTask.ExecuteTask()
at SourceForge.NAnt.Task.Execute()
at SourceForge.NAnt.Target.Execute()
at SourceForge.NAnt.Target.Execute()
at SourceForge.NAnt.Project.Execute(String targetName)
at SourceForge.NAnt.Project.Execute()
at SourceForge.NAnt.Project.Run()
Please send bug report to [EMAIL PROTECTED]
System.NullReferenceException: Object reference not set to an instance of an object.
at SourceForge.NAnt.Tasks.Project.Load(Solution sln, String strFilename)
at SourceForge.NAnt.Tasks.Solution.LoadProjects()
at SourceForge.NAnt.Tasks.Solution..ctor(String strSolutionFilename, ArrayList alAdditionalProjects, ArrayList alRefe
renceProjects, Task nanttask)
at SourceForge.NAnt.Tasks.SolutionTask.ExecuteTask()
at SourceForge.NAnt.Task.Execute()
at SourceForge.NAnt.Target.Execute()
at SourceForge.NAnt.Project.Execute(String targetName)
at SourceForge.NAnt.Tasks.CallTask.ExecuteTask()
at SourceForge.NAnt.Task.Execute()
at SourceForge.NAnt.Target.Execute()
at SourceForge.NAnt.Target.Execute()
at SourceForge.NAnt.Project.Execute(String targetName)
at SourceForge.NAnt.Project.Execute()
at SourceForge.NAnt.Project.Run()
Please send bug report to [EMAIL PROTECTED]
Thanks,
Eric
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!