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 . 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 |
- [nant-dev] Bug in NAnt Visual Studio .NET Solution builder Stephen Dunn