I’m using the       <solution solutionfile="D:\blah.sln" configuration="Debug" /> tag to build a solution.

I’ve found the following:

The solution contains two projects, Project A and Project B

Project A in has a reference to a com DLL.  This DLL is produced as output from Project B.  The project’s build order build Project B first so that the file referenced by Project A will exist.  This works fine when building from Visual Studio .NET(2003).

The problem occurs when using NAntContrib.  When loading the solution, dependencies are being resolved at load time, and hence failing on the missing DLL that is referenced by Project A.  Here’s the call stack:

[solution] Starting solution build.

 

BUILD FAILED

 

INTERNAL ERROR

 

System.Exception: Couldn't find referenced type library 'd:\projects\libraries\picrypt\debug\PICrypt.dll'.

   at NAnt.VSNet.Reference.HandleWrapperImport(XmlElement elemReference)

   at NAnt.VSNet.Reference..ctor(Solution solution, ProjectSettings ps, XmlElement elemReference, SolutionTask solutionTask, String outputDir)

   at NAnt.VSNet.Project.Load(Solution sln, String projectPath)

   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(String solutionFileName, ArrayList additionalProjects, ArrayList referenceProjects, TempFileCollection tfc, SolutionTa

sk solutionTask, WebMapCollection webMappings, FileSet 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, Boolean forceDependencies)

   at NAnt.Core.Project.Execute()

   at NAnt.Core.Project.Run()

 

Please send bug report to [EMAIL PROTECTED]

 

Total time: 74.6 seconds.

 

Please let me know if you require more information.

 

Many thanks,

 

Steve Dunn

This email and any attachments are confidential. They may contain privileged information and are intended for the named addressee(s) only. They must not be distributed without Perfect Information's consent. If you are not the intended recipient, please notify us immediately and do not disclose, distribute, or retain this email or any part of it. Unless expressly stated, opinions in this email are those of the individual sender, and not of Perfect Information. We believe but do not warrant that this e-mail and any attachments are virus free. You must therefore take full responsibility for virus checking. Perfect Information reserves the right to monitor all email communications through their networks.

Reply via email to