We're trying to use nant to compile a solution from the command line (since devenv has serious issues doing that itself). However, nant continually crashes when reading the solution file. It appears nant doesn't like the mix of managed C++ and C# projects that we have going. I've tried both the current release of nant as well as the lastest nightly build (Nov. 10th). Both get the same exception and pasted below. I've also attached the solution file itself and the nant build file. The "build" target is what causes the crash. The various other targets are working fine and aren't an issue. I added a "devenv" target that just calls devenv to do the build, but as I mentioned, that's a less then optimal solution to the problem. If you could shed some light on this problem, we'd be very grateful. If you need any other information (such as the project files), let me know.

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

Buildfile: file:///D:/projects/mhenry/ke5/ke5.build
Target(s) specified: build

build:

[solution] Starting solution build.

BUILD FAILED

INTERNAL ERROR

System.NullReferenceException: Object reference not set to an instance of an object.
at NAnt.VSNet.Reference..ctor(Solution solution, ProjectSettings ps, XmlElement elemReference, SolutionTask solutionTask, String outputDir)
at NAnt.VSNet.VcProject.Load(Solution sln, String projectPath)
at NAnt.VSNet.ProjectFactory.LoadProject(Solution sln, SolutionTask slnTask,TempFileCollection tfc, String outputDir, String path)
at NAnt.VSNet.Solution.LoadProjects()
at NAnt.VSNet.Solution..ctor(String solutionFileName, ArrayList additionalProjects, ArrayList referenceProjects, TempFileCollection tfc, SolutionTask solutionTask, WebMapCollection webMappings, FileSet excludesProjects, String outputDir)
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.2 seconds.


-Mark-


Attachment: KE5.sln
Description: Binary data

<?xml version="1.0"?>
<project name="KE5" default="build" basedir=".">
    <description>KE5</description>
    <property name="nant.settings.currentframework" value="net-1.1"/>
    <target name="full" description="Do a full update, build, etc" depends="update,devenv"/>
    <target name="update" description="Do a vers update">
        <exec program="cmd.exe" workingdir="d:\projects\mhenry\ke5-cc" commandline="/c vers_service.cmd up -f" output="vers.output" append="true"/>
    </target>
    <target name="clean" description="Use devenv to clean up project">
        <exec program="devenv" commandline="ke5.sln /clean debug"/>
    </target>
    <target name="build" description="Build solution">
        <solution configuration="debug" solutionfile="ke5.sln" >
            <assemblyfolders>
                <includes name="c:\nunit\bin"/>
            </assemblyfolders>
        </solution>
    </target>
    <target name="devenv" description="Build using devenv">
        <exec append="true" program="devenv.com" commandline="Ke5.sln /rebuild Debug" output="devenv.output"/>
    </target>
</project>

Reply via email to