Title: Nant - Build Using a Solution File That Contains a Web Service

Just wondering if someone encountered this problem and what the solution is.  The solution contains a Web Service also.  The error I get when I tried to compile the VS.Net solution (via Solution task) is:

System.NullReferenceException: Object reference not set to an instance of an object.
   at NAnt.VSNet.Tasks.Solution.RecursiveLoadTemplateProject(String strFilename)
   at NAnt.VSNet.Tasks.Solution.RecursiveLoadTemplateProject(String strFilename)
   at NAnt.VSNet.Tasks.Solution..ctor(String strSolutionFilename, ArrayList alAdditionalProjects, ArrayList alReferenceProjects, TempFileCollection tfc, Task nanttask)

   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()

My build file is quite simple and it is:

<?xml version="1.0"?>

<project name="CauseOfLoss" default="StartProcess">

        <property name="LocalPath" value="c:\work\CauseOfLoss" />

        <property name="SolutionFile" value="${LocalPath}\CauseOfLoss.sln" />

        <target name="StartProcess" depends="build" >
                <tstamp>
                        <formatter property="DSTAMP" pattern="yyyy-mm-dd" />
                        <formatter property="TSTAMP" pattern="HH:MM" />
                </tstamp>
        </target>      

        <target name="build" description="Perform build" >

                <echo message="Build Debug Using Solution" />
                <solution configuration="debug" solutionfile="${SolutionFile}">
                </solution>

                <echo message="Build Release Using Solution" />
                <solution configuration="release" solutionfile="${SolutionFile}">
                </solution>

                <echo message="Build Successful" />

        </target>


</project>

Any ideas on how to resolve this is appreciated.

Thanks, Marie Chow

Reply via email to