I have tried serveral builds of Nant, the latest being 0.85.1693.0. I have 2 VS projects, one references the other (say B references A). I created a build file that has a target for each with one referencing the other to achieve the correct build order. I also used the "referenceprojects" element of the solution task to reference the dependent assembly (B contains this to point to A). Each project/target builds into a separate directory.
The problem is that when Nant tries to fix the reference it uses the path for the dependent project rather than the referenced project. It correctly loads A's project, but then uses the wrong path. See output below (look for text "fixed reference"). If I choose to build both projects (the outputdir attribute of both solution tasks) in the same directory all is fine, however that is not optimal.
Thanks,
Don
PARTIAL NANT OUTPUT:
buildcommon:
[solution] Starting solution build.
[solution] Included projects:
[solution] - C:\CB.com\Nant\src\Cbw.Common\Cbw.Common.csproj
[solution] Loading projects...
[solution] Loading project 'C:\CB.com\Nant\src\Cbw.Common\Cbw.Common.csproj'.
[solution] Gathering additional dependencies...
[solution] Fixing up references...
[solution] Building 'Cbw.Common' [debug]...
[solution] Project is up-to-date.
[copy] Copying 0 files to 'C:\CB.com\Nant\refs\'.
buildBLL:
[solution] Starting solution build.
[solution] Included projects:
[solution] - C:\CB.com\Nant\src\Cbw.BLL\Cbw.BLL.csproj
[solution] Reference projects:
[solution] - C:\CB.com\Nant\src\Cbw.Common\Cbw.Common.csproj
[solution] Loading projects...
[solution] Loading project 'C:\CB.com\Nant\src\Cbw.BLL\Cbw.BLL.csproj'.
[solution] Loading project 'C:\CB.com\Nant\src\Cbw.Common\Cbw.Common.csproj'.
[solution] Gathering additional dependencies...
[solution] Fixing up references...
[solution] Fixing up references...
[solution] Fixed reference 'Cbw.Common': -> C:\CB.com\Nant\src\Cbw.BLL\bin\debug\Cbw.Common.dll.
[solution] Building 'Cbw.BLL' [debug]...
[solution] Copying references:
[solution] - Cbw.Common
BUILD FAILED
Couldn't find referenced project 'Cbw.Common' output file, 'C:\CB.com\Nant\src\Cbw.BLL\bin\debug\Cbw.Common.dll'.:
On the road to retirement? Check out MSN Life Events for advice on how to get there! ------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users
