Turns out the problem was not a NAnt problem.

Someone had created a second project by copying the first .csproj file
and renaming it. As a result, both project files had the same project
GUID. Because one project referenced the other, NAnt thought that the
project was referencing itself.

I'm guessing that VS.NET didn't have a problem with it because it uses
the project names to track dependencies while NAnt uses the project
GUIDs.

-----Original Message-----
From: Gert Driesen [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 13, 2006 11:44 AM
To: Craig Wagner; nant-users@lists.sourceforge.net
Subject: RE: [NAnt-users] Circular reference to <project> detected in
project <project>

Hi Craig,

Are you using a recent version of NAnt ? If so, please send me a small
repro for this issue.

Gert 

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Craig 
> Wagner
> Sent: maandag 13 februari 2006 18:39
> To: nant-users@lists.sourceforge.net
> Subject: [NAnt-users] Circular reference to <project> detected in 
> project <project>
> 
> I'm getting this message when using the <solution> task.
>  
> I've stripped my .build file to the following:
>  
> <?xml version="1.0"?>
> <project name="FileListenerService" default="build" 
> xmlns="http://nant.sf.net/release/0.85-rc3/nant.xsd";>
>     <target name="build">
>         <solution
>             solutionfile="FileListenerService.sln"
>             includevsfolders="false"
>             configuration="Release"
>             failonerror="true"
>         />
>     </target>
> </project>
>  
> And the exception I'm getting is:
>  
> Circular reference to "SA.TRAC4.DIS.FileListenerService" 
> detected in project "SA.TRAC4.DIS.FileListenerService".
>  
> However, I can open the solution and do a full rebuild just fine from 
> VS.NET.
>  
> I've looked at the project and solution files using notepad and can't 
> see what it might be complaining about. I've tried running NAnt using 
> the -v switch and it doesn't give me any more information.
>  
> I'm kind of out of ideas at this point as to where else to look. Any 
> suggestions?

*******************************************************************
Note: The information contained in this message may be privileged
and confidential and protected from disclosure. If the reader of
this message is not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient,
you are hereby notified that any dissemination, distribution or
copying of this communication is strictly prohibited.
If you have received this communication in error, please notify us
immediately by replying to the message and deleting it from your
computer.
Thank you.
Stockamp & Associates, Inc.
*******************************************************************



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to