Your project is referencing another project using VS.NET's "project references". If the other project is already built, add it to the <referenceprojects> tag:

<target name="build">

<solution configuration="debug"

<referenceprojects>
<includes name="..../otherproject.csproj" />

</referenceprojects>
<projects>

<!--<includes name="Core.etp" />-->

<includes name="Bkc.Oblik.aCRM.Common/Bkc.Oblik.aCRM.Common.csproj"/>

</projects>

</solution>

</target>

If it is not already built, add it to the <projects> tag with your other project.

Dmitriy Bezugliy wrote:

Hi

I novice to Nant and Ant.



I try to using task <solution>

<target name="build">

<solution configuration="debug"

<projects>

<!--<includes name="Core.etp" />-->

<includes name="Bkc.Oblik.aCRM.Common/Bkc.Oblik.aCRM.Common.csproj"/>

</projects>

</solution>

</target>

And got those answer :



build:

[solution] Starting solution build.

[solution] Included projects:

[solution] - C:\aCRM\src\Core\Bkc.Oblik.aCRM.Common\Bkc.Oblik.aCRM.Common.csproj

[solution] Reference projects:

Total time: 0 seconds.

BUILD FAILED

INTERNAL ERROR

System.Exception: External reference found, but project was not loaded: Bkc.Oblik.OperationManagment

at NAnt.VSNet.Tasks.Reference..ctor(Solution sln, ProjectSettings ps, XmlElement elemReference, Task nanttask)

at NAnt.VSNet.Tasks.Project.Load(Solution sln, String strFilename)

at NAnt.VSNet.Tasks.Solution.LoadProjects()

at NAnt.VSNet.Tasks.Solution..ctor(ArrayList alProjects, ArrayList alReferenceProjects, TempFileCollection tfc, Task nanttask)

at NAnt.VSNet.Tasks.SolutionTask.ExecuteTask()

at NAnt.Core.Task.Execute()

at NAnt.Core.Target.Execute()

at NAnt.Core.Project.Execute(String targetName)

at NAnt.Core.Tasks.CallTask.ExecuteTask()

at NAnt.Core.Task.Execute()

at NAnt.Core.Target.Execute()

at NAnt.Core.Project.Execute(String targetName)

at NAnt.Core.Project.Execute()

at NAnt.Core.Project.Run()

Please send bug report to [EMAIL PROTECTED]



Regards,

Dmitry Bezuglyy

amid <mailto:[EMAIL PROTECTED]>@bkc.com.ua <mailto:[EMAIL PROTECTED]>





-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to