Hi Gert,

I tried the build by using the .sln file only. It builds half way but throws an error.

   Nunit-Test-DB:

       [echo] Nunit-Test-DB
       [solution] Starting solution build.
       [solution] Building 'PTA.Enterprise.Webservice.NUnit' [release]...

       BUILD FAILED

Couldn't find referenced assembly 'C:\bin\Enterprise\PTA.Enterprise.Slogger.dll'.

if you look at the path ie C:\bin\Enterprise of the above error, the path that I wanted (c:\dotnet\bin\Enterprise) has been 'trancated' at C:\dotnet. Notice that I have '..\..\..\..\bin..' below in the .csproj file. Any pointers?

**** excerpt from PTA.Enterprise.Webservice.Nunit.csproj file **

/>
<Reference
Name = "PTA.Enterprise.Slogger"
AssemblyName = "PTA.Enterprise.Slogger"
HintPath = "..\..\..\..\bin\Enterprise\PTA.Enterprise.Slogger.dll"
/>
<Reference
Name = "PTA.Enterprise.EMAB"
AssemblyName = "PTA.Enterprise.EMAB"
HintPath = "..\..\..\..\bin\Enterprise\PTA.Enterprise.EMAB.dll"
/>
<Reference
Name = "PTA.TMS.Client.Common"
AssemblyName = "PTA.TMS.Client.Common"
HintPath = "..\..\..\..\bin\TMS\PTA.TMS.Client.Common.dll"
/>
<Reference
Name = "nunit.framework"
AssemblyName = "nunit.framework"
HintPath = "..\..\..\..\..\Program Files\NUnit V2.1\bin\nunit.framework.dll"
/>
<Reference



**** excerpt from the build script **

<target name="Nunit-Test-DB" description="Nunit test Database">
        <echo message="Nunit-Test-DB"/>

<solution configuration="${release.state}" solutionfile="C:\DotNet\Nunit\PTA.ENTERPRISE.NUnit\PTA.ENTERPRISE.NUnit.sln" outputdir="${drive}\${src.bin.Nunit}"/>

<nunit2>
<formatter type="${outputType}" usefile="${usefile}" extension=".xml" outputdir="${outputdir}" />
<test assemblyname="${drive}\${src.bin.Nunit}\PTA.Enterprise.Database.Nunit.dll" />
</nunit2>
</target>


Regards,
Brian Yeo

From: "Gert Driesen" <[EMAIL PROTECTED]>
To: "Brian Yeo" <[EMAIL PROTECTED]>,<[EMAIL PROTECTED]>
CC: <[EMAIL PROTECTED]>
Subject: Re: Project GUID XXX already exists! Conflicting project is XXX
Date: Thu, 8 Jul 2004 10:39:52 +0200

Brian,

I think the problem is that the projects that you're including explicitly
are already included as part of the solution file.

The docs of the <solution> task are not very clear on this topic.  I think
the <projects> node should only be used to explicitly build a set of
projects that are not part of the specified solution file.

Gert

----- Original Message -----
From: "Brian Yeo" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, July 08, 2004 9:45 AM
Subject: Project GUID XXX already exists! Conflicting project is XXX


> Hi guys,
>
> When I build the following, I got the error msg as listed below.
>
> BUILD FAILED
>
> Error loading project C:\DotNet\Nunit\PTA.ENTERPRISE.NUnit\PTA.Enter
> prise.Database.NUnit\PTA.Enterprise.Database.NUnit.csproj. Project GUID
> {97A4F6
> 29-CA11-4577-9C15-9F1FA066D75E} already exists! Conflicting project is
> C:\DotNet
>
\Nunit\PTA.ENTERPRISE.NUnit\PTA.Enterprise.Database.NUnit\PTA.Enterprise.Dat
abas
> e.NUnit.csproj.
>
> The version of NAnt I use is 0.85 nightly build, a fairly recent version.
>
> ** excerpt of the NAnt script **
>
> <target name="Nunit-Test-DB" description="Nunit test DB">
> <echo message="Nunit-Test-DB"/>
>
> <solution configuration="${release.state}"
>
solutionfile="C:\DotNet\Nunit\PTA.ENTERPRISE.NUnit\PTA.ENTERPRISE.NUnit.sln"
> outputdir="${drive}\${src.bin.Nunit}">
> <projects>
> <include
>
name="C:\DotNet\Nunit\PTA.ENTERPRISE.NUnit\PTA.Enterprise.Database.NUnit\*.c
sproj"/>
> <include
>
name="C:\DotNet\Nunit\PTA.ENTERPRISE.NUnit\PTA.Enterprise.Enterprise.NUnit\*
.csproj"/>
> <include
>
name="C:\DotNet\Nunit\PTA.ENTERPRISE.NUnit\PTA.Enterprise.Webservice.NUnit\*
.csproj"/>
> </projects>
> </solution>
>
> <nunit2>
> <formatter type="${outputType}" usefile="${usefile}" extension=".xml"
> outputdir="${outputdir}" />
> <test
> assemblyname="${drive}\${src.bin.Nunit}\PTA.Enterprise.Database.Nunit.dll"
> />
> </nunit2>
> </target>
>
> ** The PTA.ENTERPRISE.NUnit.sln contains ***
>
> Microsoft Visual Studio Solution File, Format Version 8.00
> Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") =
> "PTA.Enterprise.Database.NUnit",
> "PTA.Enterprise.Database.NUnit\PTA.Enterprise.Database.NUnit.csproj",
> "{97A4F629-CA11-4577-9C15-9F1FA066D75E}"
> ProjectSection(ProjectDependencies) = postProject
> EndProjectSection
> EndProject
> Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") =
> "PTA.Enterprise.Enterprise.NUnit",
> "PTA.Enterprise.Enterprise.NUnit\PTA.Enterprise.Enterprise.NUnit.csproj",
> "{8EB76DB1-EAD1-420C-B5B4-49C334C04015}"
> ProjectSection(ProjectDependencies) = postProject
> EndProjectSection
> EndProject
> Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") =
> "PTA.Enterprise.Webservice.NUnit",
> "PTA.Enterprise.Webservice.NUnit\PTA.Enterprise.Webservice.NUnit.csproj",
> "{86392ED0-F927-4FB4-80E2-EC9D47D0F553}"
> ProjectSection(ProjectDependencies) = postProject
> EndProjectSection
> EndProject
>
> Is anyone able to help?
>
> Regards,
> Brian Yeo
> Registered user at SF
>
> _________________________________________________________________
> Smart Saving with ING Direct - earn 5.25% p.a. variable rate:
>
http://ad.au.doubleclick.net/clk;7249209;8842331;n?http://www.ingdirect.com.
au/burst6offer.asp?id=8
>
>

_________________________________________________________________ Looking to buy a new house? Try http://property.ninemsn.com.au/



-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to