Hmm, the plot thickens... Seems the reason the build using <projects> and no solution file stopp is because of string projectExt = Path.GetExtension(path).ToLower(CultureInfo.InvariantCulture);
In the ProjectFactory class method LoadProject(), the path variable is null for some strange reason. /Nicke ----- Original Message ----- From: "Nicklas Norling" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, October 25, 2003 8:43 PM Subject: [nant-dev] <solution> tag and references revisited > Hi all. > > I'm trying to get the <solution> tag to work for me. I have a tag with ~30 > .csproj > files included and it won't compile, nor will the sln file with the same > amount of > projects. Nothing fancy, things just some dependencies. > This is what I get: > BUILD FAILED > > INTERNAL ERROR > > System.NullReferenceException: Object reference not set to an instance of an > obj > ect. > at NAnt.VSNet.ProjectFactory.LoadProject(Solution sln, SolutionTask > slnTask, > TempFileCollection tfc, String outputDir, String path) > at NAnt.VSNet.Reference..ctor(Solution solution, ProjectSettings ps, > XmlEleme > nt elemReference, SolutionTask solutionTask, String outputDir) > at NAnt.VSNet.Project.Load(Solution sln, String fileName) > at NAnt.VSNet.ProjectFactory.LoadProject(Solution sln, SolutionTask > slnTask, > TempFileCollection tfc, String outputDir, String path) > at NAnt.VSNet.Reference..ctor(Solution solution, ProjectSettings ps, > XmlEleme > nt elemReference, SolutionTask solutionTask, String outputDir) > at NAnt.VSNet.Project.Load(Solution sln, String fileName) > at NAnt.VSNet.ProjectFactory.LoadProject(Solution sln, SolutionTask > slnTask, > TempFileCollection tfc, String outputDir, String path) > at NAnt.VSNet.Solution.LoadProjects() > at NAnt.VSNet.Solution..ctor(ArrayList projects, ArrayList > referenceProjects, > TempFileCollection tfc, SolutionTask solutionTask, WebMapCollection > webMaps, Fi > leSet excludesProjects, String outputDir) > 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] > > This is 031021 nightly build with my build event patch. > I've been trying to read the code flow, but I can't figure out what it's > doing trying to resolve > references. I put some debug code in the Reference.cs file and it turns out > the last project it > loads has 5 project references and 8 file references (system stuff). Yet the > debug message in > the constructor for Reference is getting emitted much more, maybe 3-4 times > the number of references. > > Using the sln file I get another problem, it complains it doesn't find > output from a dependent project, > and rightly so as it has yet not compiled it. I can't figure that one out > either. At least not yet... > > I observed some strangeness in the regexp in the solutionfile-provided > version of the Solution class > constructor. It appears to be matching dependencies in a VS .NET 2002 file, > but doesn't catch those > from a VS .NET 2003 file due to changes in the file formats. Also at least > VS .NET sln files do not always > have dependencies in the sln file, but they may be in the projects included. > Have not figured out why > this is so, but my sln that errors out has no dependencies in the sln file. > > Is this a known problem or am I catching ghosts? Is anyone looking into any > part of this code > to do some work? > I'd love to get as much info as possible so I can get my code compiled. I'll > be more then happy > to contribute, but if someone feels more able to handle this I could sure > use some help :) > > Thanks in advance! > > /Nicke > > > > ------------------------------------------------------- > This SF.net email is sponsored by: The SF.net Donation Program. > Do you like what SourceForge.net is doing for the Open > Source Community? Make a contribution, and help us add new > features and functionality. Click here: http://sourceforge.net/donate/ > _______________________________________________ > nant-developers mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/nant-developers ------------------------------------------------------- This SF.net email is sponsored by: The SF.net Donation Program. Do you like what SourceForge.net is doing for the Open Source Community? Make a contribution, and help us add new features and functionality. Click here: http://sourceforge.net/donate/ _______________________________________________ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers
