Greetings all,
 
I'm not sure if the following represents a problem with NAnt, or just a local configuration problem (I.e. driver error).
 
Consider the following directory structure:
 
Root
    Project1
        bin
            Release
    Project2
        bin
            Release
        lib
            Release
 
The lib folder for Project2 contains the most recent executables from Project1 which passed all applicable tests.
 
The project file for Project2 references the binary output from Project1. For unknown reasons, the hintpath for the referenced executables uses the Project1\bin\Release directory.
 
The call to the solution task for Project2 looks something like this:
 
        <solution configuration="Release">
            <projects>
                <include name="MyProject.csproj" />
            </projects>
            <assemblyfolders>
                <include name="${nant.project.basedir}\lib\Release" />
            </assemblyfolders>
        </solution>
A cleanup operation deleted the executables from the Project1\bin\Release directory, and they have not yet been rebuilt, however the executables in question *are* present and correct in the Project2\lib\Release folder.
 
An attempt to build Project2 fails with a "Could not find referenced assembly" error.
 
Obviously updating the HintPath for the reference in Project2 works, but I would have expected that since the assembly *does* exist in one of the referenced assembly folders that the solution task would have been able to find it. The solution task *is* able to locate the file if the Project1\bin\Release *directory* is removed.
 
The issue appears to occur in both the release candidate, and the Feb 27th nightly build.
 
If you have any questions or comments, feel free to share!
 
Regards,
Richard
 

Reply via email to