I am attempting to use the <solution> task to build a
vb.net solution with multiple projects and I can only
get the first project within the solution to build.

I've tried this way:

<?xml version="1.0" encoding="UTF-16"?>
<project name="OrionSearchServices" default="Debug">
<target name="Release">
        <solution configuration="Release"
solutionfile="OrionSearchServices.sln">
        </solution>
</target>
<target name="Debug">
        <solution configuration="Debug"
solutionfile="OrionSearchServices.sln">
        </solution>
</target>
</project>

and this way with the individual projects listed:

<?xml version="1.0" encoding="UTF-16"?>
<project name="OrionSearchServices" default="Debug">
<target name="Release">
        <solution configuration="Release">
                <projects>
                        <includes
name="TransformManager\TransformManager.vbproj"/>
                        <includes name="OrionSearchServices.vbproj"/>
                </projects>
        </solution>
</target>
<target name="Debug">
        <solution configuration="Debug">
                <projects>
                        <includes
name="TransformManager\TransformManager.vbproj"/>
                        <includes name="OrionSearchServices.vbproj"/>
                </projects>         
        </solution>
</target>
</project>

and both result in this(from nant -v):

NAnt version 0.8.3 Copyright (C) 2001-2003 Gerry Shaw
http://nant.sourceforge.net

settings warning: frameworkinfo netcf-1.0 is invalid
and has not been loaded: fr
amework Assembly Dir C:\Program Files\Microsoft Visual
Studio .NET 2003\CompactF
rameworkSDK\v1.0.5000\Windows CE does not exist
settings warning: frameworkinfo mono-1.0 is invalid and
has not been loaded: fra
meworkDir C:\Program Files\Mono-0.25\bin does not exist
settings warning: frameworkinfo sscli-1.0 is invalid
and has not been loaded: fr
ameworkDir C:\sscli\build\v1.x86fstchk.rotor does not
exist
Buildfile:
file:///C:/projects/ORION/GUI/OrionSearchServices/OrionSearchServices
.build
Base Directory:
C:\projects\ORION\GUI\OrionSearchServices.

Debug:

 [solution] Starting solution build.
 [solution] Included projects:
 [solution] Reference projects:
 [solution] Building Orion.GUI.TransformManager
[Debug]...
 [solution] Copying references:
 [solution]  - System.Windows.Forms
 [solution]  - System
 [solution]  - System.Data
 [solution]  - System.XML
 [solution] Compiling resources:
 [solution] Starting compiler...
 [solution] Success! (exit code = 0)
Total time: 1 seconds.

BUILD FAILED

INTERNAL ERROR

System.Exception: Unable to find appropriate
configuration for project reference

   at NAnt.VSNet.Tasks.Solution.Compile(String
strConfiguration, ArrayList alCSC
Arguments, String strLogFile, Boolean bVerbose, Boolean
bShowCommands)
   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.Project.Execute()
   at NAnt.Core.Project.Run()

Please send bug report to
[EMAIL PROTECTED]

My guess is that I've found a bug and need to report
it.  The first example build xml works flawlessly with
single projects, though.


-------------------------------------------------------
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-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to