----- Original Message -----
Sent: Monday, February 23, 2004 5:45
PM
Subject: [nant-dev] "Solution" Task
Error
Hello,
I'm receiving the error
stated below from the "solution" task.
I'm currently using nightly
build nant-0.85-20040221
The project is a c# Class
Library project, which generates a dll file.
The Script call looks like
this
<target
name="srcbuild" depends="prebuild" description="Builds all sub projects"
>
<solution
solutionfile="${src.file.sln}"
configuration="${build.target}">
</solution>
</target>
I checked the variable
parameters and they are correct.
Let me know what other
information I can provide?
[solution] Starting solution build.
onFailure:
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,
DirectoryInfo outputDir) in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp4AE.tmp\src\NAnt.VSNet\Reference.cs:line
154
at NAnt.VSNet.Project.Load(Solution sln, String
projectPath) in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp4AE.tmp\src\NAnt.VSNet\Project.cs:line
194
at NAnt.VSNet.ProjectFactory.LoadProject(Solution sln,
SolutionTask slnTask, TempFileCollection tfc, DirectoryInfo outputDir, String
path) in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp4AE.tmp\src\NAnt.VSNet\ProjectFactory.cs:line
70
at NAnt.VSNet.Solution.LoadProjects() in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp4AE.tmp\src\NAnt.VSNet\Solution.cs:line
420
at NAnt.VSNet.Solution..ctor(FileInfo solutionFile,
ArrayList additionalProjects, ArrayList referenceProjects, TempFileCollection
tfc, SolutionTask solutionTask, WebMapCollection webMappings, FileSet
excludesProjects, DirectoryInfo outputDir) in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp4AE.tmp\src\NAnt.VSNet\Solution.cs:line
122
at NAnt.VSNet.Tasks.SolutionTask.ExecuteTask() in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp4AE.tmp\src\NAnt.VSNet\Tasks\SolutionTask.cs:line
330
at NAnt.Core.Task.Execute() in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp4AE.tmp\src\NAnt.Core\Task.cs:line
151
at NAnt.Core.Target.Execute() in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp4AE.tmp\src\NAnt.Core\Target.cs:line
217
at NAnt.Core.Project.Execute(String targetName, Boolean
forceDependencies) in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp4AE.tmp\src\NAnt.Core\Project.cs:line
768
at NAnt.Core.Project.Execute() in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp4AE.tmp\src\NAnt.Core\Project.cs:line
730
at NAnt.Core.Project.Run() in
C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp4AE.tmp\src\NAnt.Core\Project.cs:line
793