Hello I am using nant-0.85-rc1. I get this exception when excecuting the solution task. My solution contains 1 VC++.Net project that contains project references to other C# projects in the solution. I had a cursory look at the code. It appears (to me) that I will always get this exception if the VC++ project contains project references (since CreateReference is called with parameter settings = null). Build script output ----------------------------------------------------------
Buildfile: file:///C:/Source/nant-0.85-rc1/VisualStudioBuild/MyBuildFiles/AutoBuild .build.xml Target(s) specified: Runner Runner: DisplaySystemInfo: [sysinfo] Setting system information properties under sys* OutputProperties: [echo] ab.build.title = Continuous [echo] ab.dir.base = C:\AutoBuild\Cesdotnet [echo] ab.dir.build = C:\AutoBuild\Cesdotnet\Build\Continuous [echo] ab.dir.checkout = C:\AutoBuild\Cesdotnet\ContinuousCheckout [echo] ab.dir.results = C:\AutoBuild\Cesdotnet\Results\Continuous [echo] ab.dir.results.temp = C:\AutoBuild\Cesdotnet\Results\ContinuousTemp [echo] ab.build.configuration = Debug [echo] ab.build.solutionfile = CesAll.sln build: [echo] Building solution : C:\Source\cesdotnet_HEAD_NEW\cesdotnet\src\CesAll.sln [solution] Starting solution build. [solution] Only C#, VB.NET and C++ projects are supported. Skipping project 'Database\Database.dbp'. BUILD FAILED - 0 non-fatal error(s), 1 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) in c:\source\nant-0.85-rc1\visualstudiobuild\nant.vsnet\projectreference.cs :line 46 at NAnt.VSNet.ReferenceFactory.CreateReference(SolutionBase solution, ProjectSettings projectSettings, XmlElement xmlDefinition, GacCache gacCache, ReferencesResolver referencesResolver, ProjectBase parent, DirectoryInfo outputDir) in C:\Source\nant-0.85-rc1\VisualStudioBuild\NAnt.VSNet\ReferenceFactory.cs :line 75 at NAnt.VSNet.VcProject..ctor(SolutionBase solution, String projectPath, XmlElement xmlDefinition, SolutionTask solutionTask, TempFileCollection tfc, GacCache gacCache, ReferencesResolver refResolver, DirectoryInfo outputDir) in C:\Source\nant-0.85-rc1\VisualStudioBuild\NAnt.VSNet\VcProject.cs:line 81 at NAnt.VSNet.ProjectFactory.CreateProject(SolutionBase solution, SolutionTask solutionTask, TempFileCollection tfc, GacCache gacCache, ReferencesResolver referencesResolver, DirectoryInfo outputDir, String projectPath) in C:\Source\nant-0.85-rc1\VisualStudioBuild\NAnt.VSNet\ProjectFactory.cs:l ine 191 at NAnt.VSNet.ProjectFactory.LoadProject(SolutionBase solution, SolutionTask solutionTask, TempFileCollection tfc, GacCache gacCache, ReferencesResolver referencesResolver, DirectoryInfo outputDir, String path) in C:\Source\nant-0.85-rc1\VisualStudioBuild\NAnt.VSNet\ProjectFactory.cs:l ine 98 at NAnt.VSNet.SolutionBase.LoadProjects(GacCache gacCache, ReferencesResolver refResolver) in C:\Source\nant-0.85-rc1\VisualStudioBuild\NAnt.VSNet\SolutionBase.cs:lin e 443 at NAnt.VSNet.Everett.Solution..ctor(String solutionContent, SolutionTask solutionTask, TempFileCollection tfc, GacCache gacCache, ReferencesResolver refResolver) in C:\Source\nant-0.85-rc1\VisualStudioBuild\NAnt.VSNet\Everett\Solution.cs :line 98 at NAnt.VSNet.SolutionFactory.LoadSolution(SolutionTask solutionTask, TempFileCollection tfc, GacCache gacCache, ReferencesResolver refResolver) in C:\Source\nant-0.85-rc1\VisualStudioBuild\NAnt.VSNet\SolutionFactory.cs: line 80 at NAnt.VSNet.Tasks.SolutionTask.ExecuteTask() in C:\Source\nant-0.85-rc1\VisualStudioBuild\NAnt.VSNet\Tasks\SolutionTask. cs:line 377 at NAnt.Core.Task.Execute() in C:\Source\nant-0.85-rc1\VisualStudioBuild\NAnt.Core\Task.cs:line 177 at NAnt.Core.Target.Execute() in C:\Source\nant-0.85-rc1\VisualStudioBuild\NAnt.Core\Target.cs:line 249 at NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies) in C:\Source\nant-0.85-rc1\VisualStudioBuild\NAnt.Core\Project.cs:line 882 at NAnt.Core.Project.Execute(String targetName) in C:\Source\nant-0.85-rc1\VisualStudioBuild\NAnt.Core\Project.cs:line 852 at NAnt.Core.Tasks.CallTask.ExecuteTask() in C:\Source\nant-0.85-rc1\VisualStudioBuild\NAnt.Core\Tasks\CallTask.cs:li ne 132 at NAnt.Core.Task.Execute() in C:\Source\nant-0.85-rc1\VisualStudioBuild\NAnt.Core\Task.cs:line 177 at NAnt.Core.Target.Execute() in C:\Source\nant-0.85-rc1\VisualStudioBuild\NAnt.Core\Target.cs:line 249 at NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies) in C:\Source\nant-0.85-rc1\VisualStudioBuild\NAnt.Core\Project.cs:line 882 at NAnt.Core.Project.Execute() in C:\Source\nant-0.85-rc1\VisualStudioBuild\NAnt.Core\Project.cs:line 839 at NAnt.Core.Project.Run() in C:\Source\nant-0.85-rc1\VisualStudioBuild\NAnt.Core\Project.cs:line 908 Please send bug report to [EMAIL PROTECTED] Total time: 1.1 seconds. Build script ------------------------------------------- <project name="scheduling" default="Runner" xmlns="http://nant.sf.net/schemas/nant-0.85.win32.net-1.0.xsd"> <!-- Set up some properties. The prefix 'ab' is short for auto build --> <property name="ab.task.verbose" value="false" /> <property name="ab.build.title" value="Continuous" verbose="${ab.task.verbose}"/> <property name="ab.dir.base" value="C:\AutoBuild\Cesdotnet" verbose="${ab.task.verbose}"/> <property name="ab.dir.build" value="${path::combine(path::combine(ab.dir.base, 'Build'), ab.build.title)}" verbose="${ab.task.verbose}"/> <property name="ab.dir.checkout" value="${path::combine(ab.dir.base, ab.build.title)}Checkout" verbose="${ab.task.verbose}" /> <property name="ab.dir.results" value="${path::combine(path::combine(ab.dir.base, 'Results'), ab.build.title)}" verbose="${ab.task.verbose}"/> <property name="ab.dir.results.temp" value="${ab.dir.results}Temp" verbose="${ab.task.verbose}"/> <property name="ab.build.configuration" value="Debug" verbose="${ab.task.verbose}" /> <property name="ab.build.solutionfile" value="CesAll.sln" verbose="${ab.task.verbose}" /> <target name="Runner" description="A target to call and manage the othe targets"> <call target="DisplaySystemInfo" verbose="${ab.task.verbose}" /> <call target="OutputProperties" verbose="${ab.task.verbose}" /> <call target="build" verbose="${ab.task.verbose}" /> </target> <target name="OutputProperties" description="Echoes all property values." > <echo message="ab.build.title = ${ab.build.title}" /> <echo message="ab.dir.base = ${ab.dir.base}" /> <echo message="ab.dir.build = ${ab.dir.build}" /> <echo message="ab.dir.checkout = ${ab.dir.checkout}" /> <echo message="ab.dir.results = ${ab.dir.results}" /> <echo message="ab.dir.results.temp = ${ab.dir.results.temp}" /> <echo message="ab.build.configuration = ${ab.build.configuration}" /> <echo message="ab.build.solutionfile = ${ab.build.solutionfile}" /> </target> <target name="test" description="Clears the build directory." > <echo message="test task"/> <property name="floating" value="1.4" /> <property name="result" value="${double::parse(floating) + 1.4}" /> <echo message="result = ${ab.dir.results.temp}" /> </target> <target name="DisplaySystemInfo" description="Clears the build directory." > <sysinfo verbose="${ab.task.verbose}" prefix="sys" failonerror="false"/> </target> <target name="build" description="Builds the CesAll solution" > <!-- override this value temproarily --> <property name="ab.dir.checkout" value="C:\Source\cesdotnet_HEAD_NEW\cesdotnet" verbose="${ab.task.verbose}" /> <property name="ab.build.configuration" value="Debug" verbose="${ab.task.verbose}" unless="${property::exists('ab.build.configuration')}" /> <property name="ab.inner.build.solution.fullpath" value="${path::combine(ab.dir.checkout, 'src\' + ab.build.solutionfile)}" /> <echo message="Building solution : ${ab.inner.build.solution.fullpath}" /> <solution configuration="${ab.build.configuration}" solutionfile="${ab.inner.build.solution.fullpath}"> <excludeprojects> <include name="Database\Database.dbp"/> </excludeprojects> <webmap> <map url="http://localhost/Cesweb/Cesweb.csproj" path="${path::combine(ab.dir.checkout, 'src\Cesweb\cesweb.csproj')}" /> <map url="http://localhost/DataServerServer/DataServerServer.csproj" path="${path::combine(ab.dir.checkout, 'src\DataServerServer\DataServerServer.csproj')}" /> </webmap> </solution> </target> </project> ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System - after being sent from Granta Design Ltd ______________________________________________________________________ ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ nant-developers mailing list nant-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-developers