Sorry for the delay Ian, I've been on vacation.  I think you're right about not having my debugging options set right.  Here's what I got when doing "run without debug":
 
NAnt version 0.8.4 Copyright (C) 2001-2003 Gerry Shaw
http://nant.sourceforge.net
Could not find a '*.build' file in 'D:\CVSNant\nant\build.VS.Net'
For more information regarding the cause of the build failure, enable log4net us
ing the instructions in NAnt.exe.config and run the build again.
Try 'nant -help' for more information
Press any key to continue
 
The settings look right to me, but It's been trial and error.  Here's what I did:
 
1.  Opened nant.sln in D:\CVSNant\nant
2.  Right clicked on the NAnt.VSNet project and selected properties
3.  Went to Configuration Properties/Debugging and set:
     a. Debug Mode = Program
     b. Start Application = D:\CVSNant\nant\bin\NAnt.exe
     c. Command Line Arguments = -f:WebSolution.build
     d. Working Directory = D:\projects\myProject
4.  With NAnt.VSNet selected, if I step in with F11, it chokes out after about 15 lines executed.  If I run without debug, it dies with the above error.
 
Am I setting something wrong in my Debugging settings?
 
But as for the reason I need to debug in the first place...  When I change the code as suggested by Jerek and run from the command line, I no longer get the nullReference error.  Instead, I get a reference error:
 
 [solution] Building MyProj.MySubProj.Web [release]...
BUILD FAILED
INTERNAL ERROR
System.Exception: Couldn't find referenced assembly: D:\MySubProj\Library\bin\myDll.dll
   at NAnt.VSNet.Reference.GetReferenceFiles(ConfigurationSettings configurationSettings) in D:\CVSNant\nant\src\NAnt.VS
Net\Reference.cs:line 191
   at NAnt.VSNet.Project.Compile(String configuration, ArrayList alCSCArguments, String strLogFile, Boolean bVerbose, Bo
olean bShowCommands) in D:\CVSNant\nant\src\NAnt.VSNet\Project.cs:line 259
   at NAnt.VSNet.Solution.Compile(String configuration, ArrayList compilerArguments, String logFile, Boolean verbose, Bo
olean showCommands) in D:\CVSNant\nant\src\NAnt.VSNet\Solution.cs:line 208
   at NAnt.VSNet.Tasks.SolutionTask.ExecuteTask() in D:\CVSNant\nant\src\NAnt.VSNet\Tasks\SolutionTask.cs:line 159
   at NAnt.Core.Task.Execute() in D:\CVSNant\nant\src\NAnt.Core\Task.cs:line 142
   at NAnt.Core.Target.Execute() in D:\CVSNant\nant\src\NAnt.Core\Target.cs:line 137
   at NAnt.Core.Project.Execute(String targetName) in D:\CVSNant\nant\src\NAnt.Core\Project.cs:line 613
   at NAnt.Core.Tasks.CallTask.ExecuteTask() in D:\CVSNant\nant\src\NAnt.Core\Tasks\CallTask.cs:line 91
   at NAnt.Core.Task.Execute() in D:\CVSNant\nant\src\NAnt.Core\Task.cs:line 142
   at NAnt.Core.Target.Execute() in D:\CVSNant\nant\src\NAnt.Core\Target.cs:line 137
   at NAnt.Core.Target.Execute() in D:\CVSNant\nant\src\NAnt.Core\Target.cs:line 124
   at NAnt.Core.Project.Execute(String targetName) in D:\CVSNant\nant\src\NAnt.Core\Project.cs:line 613
   at NAnt.Core.Project.Execute() in D:\CVSNant\nant\src\NAnt.Core\Project.cs:line 596
   at NAnt.Core.Project.Run() in D:\CVSNant\nant\src\NAnt.Core\Project.cs:line 637
Please send bug report to [EMAIL PROTECTED].
 
I see what the problem is but am unclear on what to do to fix it.  I have created my master solution above the projects.  It builds a project that is nested 2 directories below it.  When it gets to the reference files it uses the hintpath (which is relative to the csproj file for that particular project - i.e.  hintpath = ..\..\MySubProj\Library\bin\myDll.dll).  In reference to that csproj file, that path should be:
 
D:\projects\MyProject\MySubProject\library\bin\myDll.dll
 
But instead, <solution> is trying to reference it in relationship to where the master .sln is at:
 
D:\mySubProject\library\bin\myDll.dll
 
Any suggestions on fixing this (or just debug settings so that I can trace and figure out how to fix it).
 
Thanks,
Eric
 
Ian MacLean <[EMAIL PROTECTED]> wrote:
Eric,
are you sure that your IDE debugging settings match what you are tying
from the commandline ?
make sure that the working directory for debuggins is set to the dir
where your .build file is

Do a run without debugging from the ide to see if you get the same
output as below.

Ian

> Thanks Jarek! I got it in and built. Trying to build a web project
> from , though, I'm still getting the error:
>
> System.NullReferenceException: Object reference not set to an instance
> of an object.
> at NAnt.VSNet.Project.Load(Solution sln, String fileName) in
> D:\CVSNant\nant\src\NAnt.VSNet\Project.cs:line 185
> at NAnt.VSNet.Solution.LoadProjects() in
> D:\CVSNant\nant\src\NAnt.VSNet\Solution.cs:line 299
> at NAnt.VSNet.Solution..ctor(String solutionFileName, ArrayList
> additionalProjects, ArrayList referenceProjects, Temp
> FileCollection tfc, SolutionTask solutionTask, WebMapCollection
> webMappings, FileSet excludesProjects, String outputDir)
> in D:\CVSNant\nant\src\NAnt.VSNet\Solution.cs:line 101
> at NAnt.VSNet.Tasks.SolutionTask.ExecuteTask() in
> D:\CVSNant\nant\src\NAnt.VSNet\Tasks\SolutionTask.cs:line 155
> at NAnt.Core.Task.Execute() in
> D:\CVSNant\nant\src\NAnt.Core\Task.cs:line 142
> at NAnt.Core.Target.Execute() in
> D:\CVSNant\nant\src\NAnt.Core\Target.cs:line 137
> at NAnt.Core.Project.Execute(String targetName) in
> D:\CVSNant\nant\src\NAnt.Core\Project.cs:line 613
> at NAnt.Core.Tasks.CallTask.ExecuteTask() in
> D:\CVSNant\nant\src\NAnt.Core\Tasks\CallTask.cs:line 91
> at NAnt.Core.Task.Execute() in
> D:\CVSNant\nant\src\NAnt.Core\Task.cs:line 142
> at NAnt.Core.Target.Execute() in
> D:\CVSNant\nant\src\NAnt.Core\Target.cs:line 137
> at NAnt.Core.Target.Execute() in
> D:\CVSNant\nant\src\NAnt.Core\Target.cs:line 124
> at NAnt.Core.Project.Execute(String targetName) in
> D:\CVSNant\nant\src\NAnt.Core\Project.cs:line 613
> at NAnt.Core.Project.Execute() in
> D:\CVSNant\nant\src\NAnt.Core\Project.cs:line 596
> at NAnt.Core.Project.Run() in
> D:\CVSNant\nant\src\NAnt.Core\Project.cs:line 637
>
>
> So I tried to go in and debug it. I can step into the code with
> VS.NET, but if I set break point at NAnt.VSNet.Project.Load(Solution
> sln, String fileName), he doesn't make it there. So I stepped in with
> F11. It chokes out fairly soon in ConsoleStub.cs. Sorry I
> can't provide more info, I really new at the VS.NET stuff.
>
> Thanks,
> Eric
>
>
> */Jaroslaw Kowalski <[EMAIL PROTECTED]>/* wrote:
>
> Hi Eric,
>
> you're right, you need to get the sources from CVS. It's very easy.
> Here I've provided you with some instructions for compiling NAnt
> from CVS.
>
> Hope it helps,
>
> Jarek
>
> P.S. As I've written, this may or may not solve the mentioned problem.
>
>
>
>
>
> HOW TO COMPILE NAnt FROM CVS
> (for newbies)
>
> 1. What you need
> ================
>
> First, you need is a CVS client. You can get a windows
> version from http://cvshome.org or
> http://www.wincvs.org . There's also
> cygwin which provides CVS (www.cygwin.com
> ). Newbies could also try the graphical
> frontend for CVS called TortoiseCVS (www.tortoisecvs.org
> ) which I think is superior in
> general because of the tight integration with windows shell.
>
> Please note, that if you're behid a firewall outgoing port 2401
> must be open.
>
> 2. Getting the sources
> =======================
>
> The following commands should be done only once, to get the
> initial copy of nant. Be aware that anonymous cvs server on
> sourceforge is under very heavy load and you may encounter
> connection drops. Just retry after some delay.
>
> 2.1. Checking out the sources (the GUI way)
> ===========================================
>
> Using Tortoise CVS, enter the Windows folder where you want NAnt
> sources stored, right click, choose "CVS Checkout" and paste the
> following into CVSROOT field:
>
> :pserver:[EMAIL PROTECTED]:/cvsroot/nant
>
> then enter "nant" into "Module" field. Then click "OK". If it asks
> you for a password, hit enter (the password is empty).
>
> 2.2. Checking out the sources (the hard way)
> ============================================
>
> If you have command line cvs client execute the following:
>
> cvs -z3 -d :pserver:[EMAIL PROTECTED]:/cvsroot/nant login
> It will prompt you for the password, since there's no
> password required, just hit enter.
>
> cvs z3 -d :pserver:[EMAIL PROTECTED]:/cvsroot/nant
> checkout nant
> It will get the newest sources and store them in
> "nant" directory on your hard drive.
>
> 3. Building NAnt
> ================
>
> Enter the "nant" directory and run:
>
> bin\nant release
> for release build
>
> or
>
> bin\nant
> for debug build.
>
> The output will be stored in appropriate subdirectory of the
> "build" directory which will be created. Update NAnt.exe.config
> there as necessary and your fresh NAnt.exe is ready to go.
>
> 4. Updating the sources
> =======================
>
> Every time you want to get the fresh sources and recompile, you
> simply enter the "nant" directory and run:
>
> cvs -z3 update
>
> or using Tortoise CVS - simply right click, the "CVS Update".
>
> After which you recompile nant as described above.
>
> ----- Original Message -----
>
> *From:* Eric Fetzer
> *To:* Jaroslaw Kowalski
> *Sent:* Tuesday, August 19, 2003 4:38 PM
> *Subject:* Re: [Nant-users] Problems with solution task when
> solution has multiple projects
>
> Jarek,
>
> Can you expand on "just type 'nant release' and fresh nant
> will be built"? It sounds like you don't have to get the
> source out of CVS first. I haven't gotten that far yet, just
> keep waiting for the daily builds to update. I would much
> rather be able to get the source myself so I can start
> monkeying with it. If it's that easy, I won't sort through
> all the verbiage on sourceforge...
>
> Thanks,
> Eric
>
> */Jaroslaw Kowalski <[EMAIL PROTECTED]>/* wrote:
>
> Try compiling NAnt from CVS (it's very easy, just type
> "nant release" and
> fresh nant will be built to "build/nant-0.8.4" directory).
>
> Solution task has been recently fixed in CVS, maybe this
> will fix your
> problem.
>
> Using nant from CVS I'm able to build a quite complex (8
> interdependent
> projects) solution, but it's C# only.
>
> Jarek
>
> ----- Original Message -----
> From: "Michael Sawczyn"
> To: ;
>
> Sent: Monday, August 18, 2003 7:55 PM
> Subject: [Nant-users] Problems with solution task when
> solution has multiple
> projects
>
>
> > 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:
> >
> > -------------------------------
> >
> >
> >
> >
> > configuration="debug"/>
> >
> >
> > -------------------------------
> >
> > 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 w! i th 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
> >
>
>
>
> -------------------------------------------------------
> 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
>
> ------------------------------------------------------------------------
> Do you Yahoo!?
> SBC Yahoo! DSL
>
> - Now only $29.95 per month!
>
> ------------------------------------------------------------------------
> Do you Yahoo!?
> SBC Yahoo! DSL
>
> - Now only $29.95 per month!



Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

Reply via email to