Visual C++ projects are notoriously buggy right now. I have yet to get them to work for myself.

Your best bet for now is build your C# projects using NAnt and shell out to devenv.exe for your C++ project.

See my build file here for an example:

http://cvs.sourceforge.net/viewcvs.py/nprof/nprof/Build/nprof.build?rev=1.10&view=auto

It's not clean, but it does build everything correctly.

Kevin McIntire wrote:

Nant told me to post this error to this list, if this is not the correct
forum, I apologize.

It's the 12/26 build, XP pro, VisualStudio 7.1.3088, .NET 1.1.4322.  I'm
trying to build a solution and am getting the null pointer exception.  I
will be happy to provide solution or project files.  I browsed the stack
trace, and ended up in VcProject.cs.Load() where I didn't see the
correlation between the XML parsing and the project file mentioned in the
log below.

----------------------------------- <snip> ---------------------------------------
C:\dev\projects\cinea\strak\build>nant -D:release=1.0.0.0 -buildfile:strak.b
uild 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


Buildfile: file:///C:/dev/projects/cinea/strak/build/strak.build
Target(s) specified: build

build:

 [solution] Starting solution build.
 [solution] Loading projects...
 [solution] Loading project
'C:\dev\projects\cinea\strak\solution\..\ws\dup\cinea.strak.ws.dup_classes\c
inea.strak.ws.dup_classes.csproj'.

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.Reference..ctor(Solution solution, ProjectSettings ps,
XmlElement elemReference, SolutionTask solutionTask, String outputDir)
   at NAnt.VSNet.Project.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 solutio
nTask, 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.6 seconds.

----------------------------------- </snip> ---------------------------------------




------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn



------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to