Title: Message
Not long ago I was trying to do the same thing and receiving the same error message.
 
The <projects> element supplies a list of projects which should be built in ADDITION to any projects listed in the solutionfile. Thus a project listed in a solution and a <project> element winds up being included twice.
 
When a solutionfile is supplied, every project in the solution will be build UNLESS it appears in the <excludeprojects> element.
 
If you only want to compile a single project AND don't need to worry about dependencies, omit the solutionfile. (Of course this prevents inter-project dependencies from being processed.)

You may need to rethink your approach so that the <solution> task gets called only once after the appropriate projects are selected.
 
- Tony


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tim Mayert
Sent: Thursday, September 01, 2005 9:01 AM
To: nant-users@lists.sourceforge.net
Subject: [Nant-users] Building only one project from solution file at a time.

I have done most of my build script using nmake and even though they can get fairly long there were lots of things that can be done easily in them that seem harder to do in NANT.
 
What I am trying to do is build one project at a time from a solution file.  I am trying to use:
 
<solution solutionfile="${solution.file}" configuration="${configuration}" outputdir="${TARGETDIR}" failonerror="False" >
    <projects>
        <include name="${project.file}" />
    </projects> 
</solution>
 
Now this seems to work some of the time and others I get the following error messages:
 
[solution] Error loading project D:\Projects\BoardCVS\BoardSW\Source\Diagnostics\DeviceFlashWizard\DeviceFlashWizard.vcproj.  Project GUID {4BC1EE82-783B-48D1-BBC8-051B50D04F94} already exists! Conflicting project is D:\Projects\BoardCVS\BoardSW\Source\Diagnostics\DeviceFlashWizard\DeviceFlashWizard.vcproj.
Is there any way to have only one project build at a time?
 
I also have a project that builds a dependency lib project first and then links to this library during it's own build.  In Studio .NET as well as my Make file this works fine, but in NANT it does not seem to link to this library and the build fails.   Is there a task or other setting that has to be set to have it link to this external library?
 
Thanks for any help that can be supplied.
 
Tim Mayert


_______________________________


This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential.


If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail and delete the message and any attachments from your system.



Reply via email to