Just started trying to use Nant yesterday, so forgive me if this is a known issue.
I created a solution for the HelloWorld example with one C# project in it (HelloWorld-cs.csproj). Using the following build script, Nant 0.8.3-rc2 compiled it just file: ------------------------------- <?xml version="1.0"?> <project name="Hello World" default="build"> <target name="build"> <solution solutionfile="HelloWorld.sln" configuration="debug"/> </target> </project> ------------------------------- I then added a second project to the solution, the HelloWorld VB example (HelloWorld-vb.vbproj). Nant failed with the following: ------------------------------- NAnt version 0.8.3 Copyright (C) 2001-2003 Gerry Shaw http://nant.sourceforge.net Buildfile: file:///C:/nant-0.8.3-rc2/examples/HelloWorld/default.build build: [solution] Starting solution build. Total time: 0 seconds. BUILD FAILED INTERNAL ERROR System.NullReferenceException: Object reference not set to an instance of an obj ect. at NAnt.VSNet.Tasks.Project.Load(Solution sln, String strFilename) at NAnt.VSNet.Tasks.Solution.LoadProjects() at NAnt.VSNet.Tasks.Solution..ctor(String strSolutionFilename, ArrayList alAd ditionalProjects, ArrayList alReferenceProjects, TempFileCollection tfc, Task na nttask) at NAnt.VSNet.Tasks.SolutionTask.ExecuteTask() at NAnt.Core.Task.Execute() at NAnt.Core.Target.Execute() at NAnt.Core.Project.Execute(String targetName) at NAnt.Core.Project.Execute() at NAnt.Core.Project.Run() Please send bug report to [EMAIL PROTECTED] ------------------------------- Thinking it might be the vb project, I removed the C# project and tried to build the solution again. It failed again with the same error. I then attempted adding and removing the various projects to ensure that the error was reproduceable. Is it the case that currently the solution task can only deal with solutions in which there is one and only one c# project? I can't believe that, so if someone could point out what I'm doing wrong, I'd appreciate it. Below is the text of the solution file with both projects in it. I'm using Visual Studio 2003 (7.1.3088). Thanks. --Michael ------------------------------- Microsoft Visual Studio Solution File, Format Version 8.00 Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "HelloWorld-vb", "HelloWorld-vb.vbproj", "{E6082716-4D7B-4CE7-B45F-1565DCF05B90}" ProjectSection(ProjectDependencies) = postProject EndProjectSection EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HelloWorld-cs", "HelloWorld-cs.csproj", "{051E250A-6FBD-4BFF-AE73-CA3823F3E3FE}" ProjectSection(ProjectDependencies) = postProject EndProjectSection EndProject Global GlobalSection(SolutionConfiguration) = preSolution Debug = Debug Release = Release EndGlobalSection GlobalSection(ProjectConfiguration) = postSolution {E6082716-4D7B-4CE7-B45F-1565DCF05B90}.Debug.ActiveCfg = Debug|.NET {E6082716-4D7B-4CE7-B45F-1565DCF05B90}.Debug.Build.0 = Debug|.NET {E6082716-4D7B-4CE7-B45F-1565DCF05B90}.Release.ActiveCfg = Release|.NET {E6082716-4D7B-4CE7-B45F-1565DCF05B90}.Release.Build.0 = Release|.NET {051E250A-6FBD-4BFF-AE73-CA3823F3E3FE}.Debug.ActiveCfg = Debug|.NET {051E250A-6FBD-4BFF-AE73-CA3823F3E3FE}.Debug.Build.0 = Debug|.NET {051E250A-6FBD-4BFF-AE73-CA3823F3E3FE}.Release.ActiveCfg = Release|.NET {051E250A-6FBD-4BFF-AE73-CA3823F3E3FE}.Release.Build.0 = Release|.NET EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution EndGlobalSection GlobalSection(ExtensibilityAddIns) = postSolution EndGlobalSection EndGlobal ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users