|
I get an internal error building one solution that I have.
The following is list of the projects in the solution in the order they are set to build in Visual Studio. CommonUI (solution) CATS.CommonUI (VB Project) CATS.CommonUI.Controls (VB Project) CATS.CommonUI.Controls.CollapsibleSplitter (C# Project) CATS.CommonUI.Forms (VB Project) CATS.CommonUI.MainMenu (VB Project) CATS.CommonUI.Singletongs (VB Project) CATS.CommonUI.Startup (VB Project)
The Target I use is as follows. <solution configuration="${config}" outputdir="${UIoutputDir}" solutionfile="${SourceIteration}\UI\CommonUI.root\CommonUI\CommonUI.sln" includevsfolders="true" verbose="true"></solution> All the properties are set correctly and using other solutions this target statement works.
Below is the output from verbose. One of my first thoughts is how does NAnt determine the build order when using a solution target. The one it used was clearly not what was specified in the solution. While I'm not certain that this is the error thrown it is attempting to build the projects in an order that won't work to do project dependencies.
__________________________________________________________________________________________________________________
NAnt 0.85 (Build 0.85.1768.0; nightly; 11/3/2004) Copyright (C) 2001-2004 Gerry Shaw http://nant.sourceforge.net
[loadtasks] Failure scanning "C:\NantTest\NAnt.NUnit1Tasks.dll" for extensions. One or more of the types in the assembly unable to load. Buildfile: file:///C:/NantTest/WinCATSUI.Build Target(s) specified: debug
debug:
clean:
cleaner:
[delete] Deleting 0 files.
buildUI:
[solution] Starting solution build. [solution] Loading projects... [solution] Loading project 'c:\src\ITERATION_6\UI\CommonUI.root\CommonUI\CATS.CommonUI.Controls.CollapsibleSplitter\CATS.CommonUI.Controls.CollapsibleSplitter.csproj'. [solution] Loading project 'c:\src\ITERATION_6\UI\CommonUI.root\CommonUI\CATS.CommonUI.Singletons\CATS.CommonUI.Singletons.vbproj'.
BUILD FAILED
INTERNAL ERROR
System.NullReferenceException: Object reference not set to an instance of an object. at NAnt.VSNet.ProjectSettings.GetProjectGuid(XmlElement elemRoot) in d:\Source\nant-20041103T201108Z\src\NAnt.VSNet\ProjectSettings.cs:line 261 at NAnt.VSNet.ProjectSettings..ctor(XmlElement elemRoot, XmlElement elemSettings, Project project) in d:\Source\nant-20041103T201108Z\src\NAnt.VSNet\ProjectSettings.cs:line 46 at NAnt.VSNet.Project.Load(Solution sln, String projectPath) in d:\Source\nant-20041103T201108Z\src\NAnt.VSNet\Project.cs:line 168 at NAnt.VSNet.ProjectFactory.LoadProject(Solution sln, SolutionTask slnTask, TempFileCollection tfc, GacCache gacCache, ReferencesResolver refResolver, DirectoryInfo outputDir, String path) in d:\Source\nant-20041103T201108Z\src\NAnt.VSNet\ProjectFactory.cs:line 100 at NAnt.VSNet.Reference..ctor(Solution solution, ProjectSettings ps, XmlElement elemReference, GacCache gacCache, ReferencesResolver refResolver, ProjectBase parent, DirectoryInfo outputDir) in d:\Source\nant-20041103T201108Z\src\NAnt.VSNet\Reference.cs:line 105 at NAnt.VSNet.Project.Load(Solution sln, String projectPath) in d:\Source\nant-20041103T201108Z\src\NAnt.VSNet\Project.cs:line 178 at NAnt.VSNet.ProjectFactory.LoadProject(Solution sln, SolutionTask slnTask, TempFileCollection tfc, GacCache gacCache, ReferencesResolver refResolver, DirectoryInfo outputDir, String path) in d:\Source\nant-20041103T201108Z\src\NAnt.VSNet\ProjectFactory.cs:line 100 at NAnt.VSNet.Solution.LoadProjects(GacCache gacCache, ReferencesResolver refResolver) in d:\Source\nant-20041103T201108Z\src\NAnt.VSNet\Solution.cs:line 574 at NAnt.VSNet.Solution..ctor(FileInfo solutionFile, ArrayList additionalProjects, ArrayList referenceProjects, TempFileCollection tfc, SolutionTask solutionTask, WebMapCollection webMaps, FileSet excludesProjects, DirectoryInfo outputDir, GacCache gacCache, ReferencesResolver refResolver) in d:\Source\nant-20041103T201108Z\src\NAnt.VSNet\Solution.cs:line 130 at NAnt.VSNet.Tasks.SolutionTask.ExecuteTask() in d:\Source\nant-20041103T201108Z\src\NAnt.VSNet\Tasks\SolutionTask.cs:line 380 at NAnt.Core.Task.Execute() in d:\Source\nant-20041103T201108Z\src\NAnt.Core\Task.cs:line 177 at NAnt.Core.Target.Execute() in d:\Source\nant-20041103T201108Z\src\NAnt.Core\Target.cs:line 249 at NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies) in d:\Source\nant-20041103T201108Z\src\NAnt.Core\Project.cs:line 876 at NAnt.Core.Project.Execute(String targetName) in d:\Source\nant-20041103T201108Z\src\NAnt.Core\Project.cs:line 846 at NAnt.Core.Tasks.CallTask.ExecuteTask() in d:\Source\nant-20041103T201108Z\src\NAnt.Core\Tasks\CallTask.cs:line 117 at NAnt.Core.Task.Execute() in d:\Source\nant-20041103T201108Z\src\NAnt.Core\Task.cs:line 177 at NAnt.Core.Target.Execute() in d:\Source\nant-20041103T201108Z\src\NAnt.Core\Target.cs:line 249 at NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies) in d:\Source\nant-20041103T201108Z\src\NAnt.Core\Project.cs:line 876 at NAnt.Core.Project.Execute() in d:\Source\nant-20041103T201108Z\src\NAnt.Core\Project.cs:line 833 at NAnt.Core.Project.Run() in d:\Source\nant-20041103T201108Z\src\NAnt.Core\Project.cs:line 902
Please send bug report to [EMAIL PROTECTED]
Total time: 0.2 seconds.
DEPARTMENT OF SOCIAL AND HEALTH SERVICES
|
- RE: [nant-dev] Error building... Conley, Michael T. (JRA)
- RE: [nant-dev] Error bui... Gert Driesen
- RE: [nant-dev] Error bui... Gert Driesen
- RE: [nant-dev] Error bui... Castro, Edwin Gabriel (Firing Systems Engr.)
- RE: [nant-dev] Error bui... Conley, Michael T. (JRA)
- RE: [nant-dev] Error... Gert Driesen
