Hi David,
 
This is a known issue, which I'm fixed right now.  This should be fixed in the next nightly build (and rc2 ofcourse).
 
Gert


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: maandag 29 november 2004 11:51
To: [EMAIL PROTECTED]
Subject: [nant-dev] Compiling a C++ project gives me a INTERNAL ERROR

I have a solution which consists of 8 projects one of which is c++ code. From the stack trace it is the VC project that is causing the issue. Briefly looking at the source code, I can see that a null is always passed in as the Project Settings parameter, hence the error. This is with v0.85rc1

 

[solution] Starting solution build.

 

BUILD FAILED - 6 non-fatal error(s), 3 warning(s)

 

INTERNAL ERROR

 

System.ArgumentNullException: Value cannot be null.

Parameter name: projectSettings

   at NAnt.VSNet.ProjectReference..ctor(XmlElement xmlDefinition, ReferencesResolver referencesResolver, ProjectBase parent, SolutionBase solution, ProjectSettings projectSettings, GacCache gacCache, DirectoryInfo outputDir)

   at NAnt.VSNet.ReferenceFactory.CreateReference(SolutionBase solution, ProjectSettings projectSettings, XmlElement xmlDefinition, GacCache gacCache, ReferencesResolver referencesResolver, ProjectBase parent, DirectoryInfo outputDir)

   at NAnt.VSNet.VcProject..ctor(SolutionBase solution, String projectPath, XmlElement xmlDefinition, SolutionTask solutionTask, TempFileCollection tfc, GacCache gacCache, ReferencesResolver refResolver, DirectoryInfo outputDir)

   at NAnt.VSNet.ProjectFactory.CreateProject(SolutionBase solution, SolutionTask solutionTask, TempFileCollection tfc, GacCache gacCache, ReferencesResolver referencesResolver, DirectoryInfo outputDir, String projectPath)

   at NAnt.VSNet.ProjectFactory.LoadProject(SolutionBase solution, SolutionTask solutionTask, TempFileCollection tfc, GacCache gacCache, ReferencesResolver referencesResolver, DirectoryInfo outputDir, String path)

   at NAnt.VSNet.ProjectReference..ctor(XmlElement xmlDefinition, ReferencesResolver referencesResolver, ProjectBase parent, SolutionBase solution, ProjectSettings projectSettings, GacCache gacCache, DirectoryInfo outputDir)

   at NAnt.VSNet.ReferenceFactory.CreateReference(SolutionBase solution, ProjectSettings projectSettings, XmlElement xmlDefinition, GacCache gacCache, ReferencesResolver referencesResolver, ProjectBase parent, DirectoryInfo outputDir)

   at NAnt.VSNet.ManagedProjectBase..ctor(SolutionBase solution, String projectPath, XmlElement xmlDefinition, SolutionTask solutionTask, TempFileCollection tfc, GacCache gacCache, ReferencesResolver refResolver, DirectoryInfo outputDir)

   at NAnt.VSNet.CSharpProject..ctor(SolutionBase solution, String projectPath, XmlElement xmlDefinition, SolutionTask solutionTask, TempFileCollection tfc, GacCache gacCache, ReferencesResolver refResolver, DirectoryInfo outputDir)

   at NAnt.VSNet.ProjectFactory.CreateProject(SolutionBase solution, SolutionTask solutionTask, TempFileCollection tfc, GacCache gacCache, ReferencesResolver referencesResolver, DirectoryInfo outputDir, String projectPath)

   at NAnt.VSNet.ProjectFactory.LoadProject(SolutionBase solution, SolutionTask solutionTask, TempFileCollection tfc, GacCache gacCache, ReferencesResolver referencesResolver, DirectoryInfo outputDir, String path)

   at NAnt.VSNet.ProjectReference..ctor(XmlElement xmlDefinition, ReferencesResolver referencesResolver, ProjectBase parent, SolutionBase solution, ProjectSettings projectSettings, GacCache gacCache, DirectoryInfo outputDir)

   at NAnt.VSNet.ReferenceFactory.CreateReference(SolutionBase solution, ProjectSettings projectSettings, XmlElement xmlDefinition, GacCache gacCache, ReferencesResolver referencesResolver, ProjectBase parent, DirectoryInfo outputDir)

   at NAnt.VSNet.ManagedProjectBase..ctor(SolutionBase solution, String projectPath, XmlElement xmlDefinition, SolutionTask solutionTask, TempFileCollection tfc, GacCache gacCache, ReferencesResolver refResolver, DirectoryInfo outputDir)

   at NAnt.VSNet.CSharpProject..ctor(SolutionBase solution, String projectPath, XmlElement xmlDefinition, SolutionTask solutionTask, TempFileCollection tfc, GacCache gacCache, ReferencesResolver refResolver, DirectoryInfo outputDir)

   at NAnt.VSNet.ProjectFactory.CreateProject(SolutionBase solution, SolutionTask solutionTask, TempFileCollection tfc, GacCache gacCache, ReferencesResolver referencesResolver, DirectoryInfo outputDir, String projectPath)

   at NAnt.VSNet.ProjectFactory.LoadProject(SolutionBase solution, SolutionTask solutionTask, TempFileCollection tfc, GacCache gacCache, ReferencesResolver referencesResolver, DirectoryInfo outputDir, String path)

   at NAnt.VSNet.ProjectReference..ctor(XmlElement xmlDefinition, ReferencesResolver referencesResolver, ProjectBase parent, SolutionBase solution, ProjectSettings projectSettings, GacCache gacCache, DirectoryInfo outputDir)

   at NAnt.VSNet.ReferenceFactory.CreateReference(SolutionBase solution, ProjectSettings projectSettings, XmlElement xmlDefinition, GacCache gacCache, ReferencesResolver referencesResolver, ProjectBase parent, DirectoryInfo outputDir)

   at NAnt.VSNet.ManagedProjectBase..ctor(SolutionBase solution, String projectPath, XmlElement xmlDefinition, SolutionTask solutionTask, TempFileCollection tfc, GacCache gacCache, ReferencesResolver refResolver, DirectoryInfo outputDir)

   at NAnt.VSNet.CSharpProject..ctor(SolutionBase solution, String projectPath, XmlElement xmlDefinition, SolutionTask solutionTask, TempFileCollection tfc, GacCache gacCache, ReferencesResolver refResolver, DirectoryInfo outputDir)

   at NAnt.VSNet.ProjectFactory.CreateProject(SolutionBase solution, SolutionTask solutionTask, TempFileCollection tfc, GacCache gacCache, ReferencesResolver referencesResolver, DirectoryInfo outputDir, String projectPath)

   at NAnt.VSNet.ProjectFactory.LoadProject(SolutionBase solution, SolutionTask solutionTask, TempFileCollection tfc, GacCache gacCache, ReferencesResolver referencesResolver, DirectoryInfo outputDir, String path)

   at NAnt.VSNet.SolutionBase.LoadProjects(GacCache gacCache, ReferencesResolver refResolver)

   at NAnt.VSNet.Everett.Solution..ctor(String solutionContent, SolutionTask solutionTask, TempFileCollection tfc, GacCache gacCache, ReferencesResolver refResolver)

   at NAnt.VSNet.SolutionFactory.LoadSolution(SolutionTask solutionTask, TempFileCollection tfc, GacCache gacCache, ReferencesResolver refResolver)

   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.4 seconds.

 

Regards,

 

Dave

 

David Richards

UBS

Halo Development

ECT IT

100 Liverpool Street

London, EC2M 2RH

Tel. +44-20-7567 26 62  Direct telephone no. 72662

Fax +44-20-7567 91 77

[EMAIL PROTECTED]

 

Reply via email to