Mario,

I suggest trying a recent nighlty build
(http://nant.sourceforge.net/nightly/builds) of NAnt as loads of issues with
the <solution> task have been fixed since the 0.84 release.

Let us know if that fixed your problem.

Gert

----- Original Message -----
From: "Mario Montoya" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 10, 2004 4:14 PM
Subject: [nant-dev] Possible bug NAnt 0.84 (Build 0.84.1455.0;
net-1.0.win32; release; 26/12/2003)


Windows XP Pro SP1 Spanish
Visual Studio.NET 2003

I have this build file, build OK except for the last task (compiling the
solution) I comment the sucesfully task....

The error is:
build:

 [solution] Starting solution build.

BUILD FAILED

INTERNAL ERROR

System.NullReferenceException: Referencia a objeto no establecida como
instancia de un objeto.
   at NAnt.VSNet.Reference..ctor(Solution solution, ProjectSettings ps,
XmlElement elemReference, SolutionTask solutionTask, String outputDir)
   at NAnt.VSNet.Project.Load(Solution sln, String projectPath)
   at NAnt.VSNet.ProjectFactory.LoadProject(Solution sln, SolutionTask
slnTask, TempFileCollection tfc, String outputDir, String path)
   at NAnt.VSNet.Solution.LoadProjects()
   at NAnt.VSNet.Solution..ctor(String solutionFileName, ArrayList
additionalProjects, ArrayList referenceProjects, TempFileCollection tfc,
SolutionTask solutionTask, WebMapCollection webMappings, FileSet
excludesProjects, String outputDir)
   at NAnt.VSNet.Tasks.SolutionTask.ExecuteTask()
   at NAnt.Core.Task.Execute()
   at NAnt.Core.Target.Execute()
   at NAnt.Core.Project.Execute(String targetName, Boolean
forceDependencies)
   at NAnt.Core.Project.Execute()
   at NAnt.Core.Project.Run()

The sourcecode for the build file:


<?xml version="1.0" encoding="utf-8" ?>
<project name="ActiveNET" default="build" basedir=".">
<description>Construye el proyecto</description>
<property name="debug" value="true" />
<property name="DirBase" value="D:\Proyectos\ActiveNET\SitioWeb\" />
<property name="DirDeploy" value="d:\basura\BuildActiveNET\" />
<property name="SvnUrl"
value="http://www.gygsoftware.com:81/svn/GyGSoftware/"; />
<target name="clean" description="Quitar archivos generados">
</target>
<target name="build" description="Compilar el proyecto">
<!--
<delete dir="${DirDeploy}" failonerror="false" />
<mkdir dir="${DirDeploy}" />
<mkdir dir="${DirDeploy}Clases\" />

<exec program="svn" commandline="export ${SvnUrl}ActiveNET/Trunk
${DirDeploy}ActiveNET\" />
<exec program="svn" commandline="export
${SvnUrl}srvConstructorFormsNET/Trunk
${DirDeploy}Clases\srvConstructorFormsNET\" />

<delete file="${DirDeploy}ActiveNET\SitioWeb\ActiveNet.vbproj.webinfo"
failonerror="false" />
-->
<solution solutionfile="${DirBase}ActiveNet.sln" configuration="release" />
<solution solutionfile="${DirDeploy}ActiveNET\SitioWeb\ActiveNet.vbproj"
configuration="release" />
</target>
</project>

The solution file is made this way:

Microsoft Visual Studio Solution File, Format Version 8.00
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "ActiveNet",
"ActiveNet.vbproj", "{1E6000B7-DA01-42B6-8E80-DCECBDB81D83}"
ProjectSection(ProjectDependencies) = postProject
EndProjectSection
EndProject
Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") =
"srvConstructorFormsNET",
"..\..\Clases\srvConstructorFormsNET\srvConstructorFormsNET.vbproj",
"{B369B8D3-4252-4454-8BE4-F1A6DA1914A2}"
ProjectSection(ProjectDependencies) = postProject
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfiguration) = preSolution
Debug = Debug
Release = Release
EndGlobalSection
GlobalSection(ProjectConfiguration) = postSolution
{1E6000B7-DA01-42B6-8E80-DCECBDB81D83}.Debug.ActiveCfg = Debug|.NET
{1E6000B7-DA01-42B6-8E80-DCECBDB81D83}.Debug.Build.0 = Debug|.NET
{1E6000B7-DA01-42B6-8E80-DCECBDB81D83}.Release.ActiveCfg = Release|.NET
{1E6000B7-DA01-42B6-8E80-DCECBDB81D83}.Release.Build.0 = Release|.NET
{B369B8D3-4252-4454-8BE4-F1A6DA1914A2}.Debug.ActiveCfg = Debug|.NET
{B369B8D3-4252-4454-8BE4-F1A6DA1914A2}.Debug.Build.0 = Debug|.NET
{B369B8D3-4252-4454-8BE4-F1A6DA1914A2}.Release.ActiveCfg = Release|.NET
{B369B8D3-4252-4454-8BE4-F1A6DA1914A2}.Release.Build.0 = Release|.NET
EndGlobalSection
GlobalSection(SolutionItems) = postSolution
ConstructorActiveNET.build = ConstructorActiveNET.build
ConstructorActiveNET.xml = ConstructorActiveNET.xml
GenerarProyecto.cmd = GenerarProyecto.cmd
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
EndGlobalSection
GlobalSection(ExtensibilityAddIns) = postSolution
EndGlobalSection
EndGlobal

The source code for the first project (not include individual files):
<VisualStudioProject>
    <VisualBasic
        ProjectType = "Web"
        ProductVersion = "7.10.3077"
        SchemaVersion = "2.0"
        ProjectGuid = "{B4B98C99-DC64-44FE-A877-196A453CAA06}"
    >
        <Build>
            <Settings
                ApplicationIcon = ""
                AssemblyKeyContainerName = ""
                AssemblyName = "ActiveNet"
                AssemblyOriginatorKeyFile = ""
                AssemblyOriginatorKeyMode = "None"
                DefaultClientScript = "JScript"
                DefaultHTMLPageLayout = "Grid"
                DefaultTargetSchema = "IE50"
                DelaySign = "false"
                OutputType = "Library"
                OptionCompare = "Binary"
                OptionExplicit = "On"
                OptionStrict = "Off"
                RootNamespace = "ActiveNet"
                StartupObject = ""
            >
                <Config
                    Name = "Debug"
                    BaseAddress = "285212672"
                    ConfigurationOverrideFile = ""
                    DefineConstants = ""
                    DefineDebug = "true"
                    DefineTrace = "true"
                    DebugSymbols = "true"
                    IncrementalBuild = "true"
                    Optimize = "false"
                    OutputPath = "bin\"
                    RegisterForComInterop = "false"
                    RemoveIntegerChecks = "false"
                    TreatWarningsAsErrors = "false"
                    WarningLevel = "1"
                />
                <Config
                    Name = "Release"
                    BaseAddress = "285212672"
                    ConfigurationOverrideFile = ""
                    DefineConstants = ""
                    DefineDebug = "false"
                    DefineTrace = "true"
                    DebugSymbols = "false"
                    IncrementalBuild = "false"
                    Optimize = "true"
                    OutputPath = "bin\"
                    RegisterForComInterop = "false"
                    RemoveIntegerChecks = "false"
                    TreatWarningsAsErrors = "false"
                    WarningLevel = "1"
                />
            </Settings>
            <References>
                <Reference
                    Name = "System"
                    AssemblyName = "System"
                />
                <Reference
                    Name = "System.Data"
                    AssemblyName = "System.Data"
                />
                <Reference
                    Name = "System.Drawing"
                    AssemblyName = "System.Drawing"
                />
                <Reference
                    Name = "System.Web"
                    AssemblyName = "System.Web"
                />
                <Reference
                    Name = "System.XML"
                    AssemblyName = "System.Xml"
                />
                <Reference
                    Name = "System.Design"
                    AssemblyName = "System.Design"
                    HintPath =
"..\..\..\WINDOWS\Microsoft.NET\Framework\v1.0.3705\System.Design.dll"
                />
                <Reference
                    Name = "System.Windows.Forms"
                    AssemblyName = "System.Windows.Forms"
                    HintPath =
"..\..\..\WINDOWS\Microsoft.NET\Framework\v1.0.3705\System.Windows.Forms.dll
"
                />
                <Reference
                    Name = "Microsoft.VisualBasic"
                    AssemblyName = "Microsoft.VisualBasic"
                    HintPath =
"..\..\..\WINDOWS\Microsoft.NET\Framework\v1.0.3705\Microsoft.VisualBasic.dl
l"
                />
                <Reference
                    Name = "System.Management"
                    AssemblyName = "System.Management"
                    HintPath =
"..\..\..\WINDOWS\Microsoft.NET\Framework\v1.0.3705\System.Management.dll"
                />
                <Reference
                    Name = "System.Web.Services"
                    AssemblyName = "System.Web.Services"
                    HintPath =
"..\..\..\WINDOWS\Microsoft.NET\Framework\v1.0.3705\System.Web.Services.dll"
                />
                <Reference
                    Name = "srvConstructorFormsNET"
                    Project = "{B369B8D3-4252-4454-8BE4-F1A6DA1914A2}"
                    Package = "{F184B08F-C81C-45F6-A57F-5ABD9991F28F}"
                />
                <Reference
                    Name = "Microsoft.mshtml"
                    AssemblyName = "Microsoft.mshtml"
                    HintPath = "C:\Archivos de
programa\Microsoft.NET\Primary Interop Assemblies\Microsoft.mshtml.dll"
                    AssemblyFolderKey = "hklm\primary interop assemblies"
                />
                <Reference
                    Name = "EnvDTE"
                    AssemblyName = "EnvDTE"
                    HintPath =
"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\EnvDTE.dll"
                />
                <Reference
                    Name = "Infragistics.WebUI.Shared.v2.1"
                    AssemblyName = "Infragistics.WebUI.Shared.v2.1"
                    HintPath =
"..\..\..\Programacion\Infragistics\NetAdvantage 2004 Volume
2\ASP.NET\Bin\Infragistics.WebUI.Shared.v2.1.dll"
                    AssemblyFolderKey =
"hklm\infragistics.webassemblies.20042"
                    Private = "True"
                />
                <Reference
                    Name = "Infragistics.WebUI.UltraWebGrid.v3.1"
                    AssemblyName = "Infragistics.WebUI.UltraWebGrid.v3.1"
                    HintPath =
"..\..\..\Programacion\Infragistics\NetAdvantage 2004 Volume
2\ASP.NET\Bin\Infragistics.WebUI.UltraWebGrid.v3.1.dll"
                    AssemblyFolderKey =
"hklm\infragistics.webassemblies.20042"
                />
                <Reference
                    Name = "Infragistics.WebUI.UltraWebListbar.v2.2"
                    AssemblyName = "Infragistics.WebUI.UltraWebListbar.v2.2"
                    HintPath =
"..\..\..\Programacion\Infragistics\NetAdvantage 2004 Volume
2\ASP.NET\Bin\Infragistics.WebUI.UltraWebListbar.v2.2.dll"
                    AssemblyFolderKey =
"hklm\infragistics.webassemblies.20042"
                />
                <Reference
                    Name = "Infragistics.WebUI.UltraWebNavigator.v3.2"
                    AssemblyName =
"Infragistics.WebUI.UltraWebNavigator.v3.2"
                    HintPath =
"..\..\..\Programacion\Infragistics\NetAdvantage 2004 Volume
2\ASP.NET\Bin\Infragistics.WebUI.UltraWebNavigator.v3.2.dll"
                    AssemblyFolderKey =
"hklm\infragistics.webassemblies.20042"
                />
                <Reference
                    Name = "Infragistics.WebUI.UltraWebToolbar.v2.2"
                    AssemblyName = "Infragistics.WebUI.UltraWebToolbar.v2.2"
                    HintPath =
"..\..\..\Programacion\Infragistics\NetAdvantage 2004 Volume
2\ASP.NET\Bin\Infragistics.WebUI.UltraWebToolbar.v2.2.dll"
                    AssemblyFolderKey =
"hklm\infragistics.webassemblies.20042"
                />
                <Reference
                    Name = "Infragistics.WebUI.WebDataInput.v1.1"
                    AssemblyName = "Infragistics.WebUI.WebDataInput.v1.1"
                    HintPath =
"..\..\..\Programacion\Infragistics\NetAdvantage 2004 Volume
2\ASP.NET\Bin\Infragistics.WebUI.WebDataInput.v1.1.dll"
                    AssemblyFolderKey =
"hklm\infragistics.webassemblies.20042"
                />
                <Reference
                    Name = "Infragistics.WebUI.WebNavBar.v3.1"
                    AssemblyName = "Infragistics.WebUI.WebNavBar.v3.1"
                    HintPath =
"..\..\..\Programacion\Infragistics\NetAdvantage 2004 Volume
2\ASP.NET\Bin\Infragistics.WebUI.WebNavBar.v3.1.dll"
                    AssemblyFolderKey =
"hklm\infragistics.webassemblies.20042"
                />
                <Reference
                    Name = "VFPToolkitNET_VB"
                    AssemblyName = "VFPToolkitNET_VB"
                    HintPath =
"..\..\Clases\VFPNet\bin\VFPToolkitNET_VB.dll"
                />
                <Reference
                    Name = "stdole"
                    Guid = "{00020430-0000-0000-C000-000000000046}"
                    VersionMajor = "2"
                    VersionMinor = "0"
                    Lcid = "0"
                    WrapperTool = "primary"
                />
                <Reference
                    Name = "CCubeX2"
                    Guid = "{801C12A5-BE41-41CD-AE48-C666E77F2F02}"
                    VersionMajor = "2"
                    VersionMinor = "0"
                    Lcid = "0"
                    WrapperTool = "tlbimp"
                />
            </References>
            <Imports>
                <Import Namespace = "Microsoft.VisualBasic" />
                <Import Namespace = "System" />
                <Import Namespace = "System.Collections" />
                <Import Namespace = "System.Configuration" />
                <Import Namespace = "System.Data" />
                <Import Namespace = "System.Drawing" />
                <Import Namespace = "System.Web" />
                <Import Namespace = "System.Web.UI" />
                <Import Namespace = "System.Web.UI.HtmlControls" />
                <Import Namespace = "System.Web.UI.WebControls" />
            </Imports>
        </Build>

For the second project:

<VisualStudioProject>
    <VisualBasic
        ProjectType = "Local"
        ProductVersion = "7.10.3077"
        SchemaVersion = "2.0"
        ProjectGuid = "{B369B8D3-4252-4454-8BE4-F1A6DA1914A2}"
    >
        <Build>
            <Settings
                ApplicationIcon = ""
                AssemblyKeyContainerName = ""
                AssemblyName = "srvConstructorFormsNET"
                AssemblyOriginatorKeyFile = ""
                AssemblyOriginatorKeyMode = "None"
                DefaultClientScript = "JScript"
                DefaultHTMLPageLayout = "Grid"
                DefaultTargetSchema = "IE50"
                DelaySign = "false"
                OutputType = "Library"
                OptionCompare = "Binary"
                OptionExplicit = "On"
                OptionStrict = "Off"
                RootNamespace = "srvConstructorFormsNET"
                StartupObject = ""
            >
                <Config
                    Name = "Debug"
                    BaseAddress = "285212672"
                    ConfigurationOverrideFile = ""
                    DefineConstants = ""
                    DefineDebug = "true"
                    DefineTrace = "true"
                    DebugSymbols = "true"
                    IncrementalBuild = "true"
                    Optimize = "false"
                    OutputPath = "bin\"
                    RegisterForComInterop = "false"
                    RemoveIntegerChecks = "false"
                    TreatWarningsAsErrors = "false"
                    WarningLevel = "1"
                />
                <Config
                    Name = "Release"
                    BaseAddress = "285212672"
                    ConfigurationOverrideFile = ""
                    DefineConstants = ""
                    DefineDebug = "false"
                    DefineTrace = "true"
                    DebugSymbols = "false"
                    IncrementalBuild = "false"
                    Optimize = "false"
                    OutputPath = "bin\"
                    RegisterForComInterop = "false"
                    RemoveIntegerChecks = "false"
                    TreatWarningsAsErrors = "false"
                    WarningLevel = "1"
                />
            </Settings>
            <References>
                <Reference
                    Name = "System"
                    AssemblyName = "System"
                />
                <Reference
                    Name = "System.Drawing"
                    AssemblyName = "System.Drawing"
                />
                <Reference
                    Name = "System.Data"
                    AssemblyName = "System.Data"
                />
                <Reference
                    Name = "System.Web"
                    AssemblyName = "System.Web"
                />
                <Reference
                    Name = "System.Management"
                    AssemblyName = "System.Management"
                />
                <Reference
                    Name = "System.XML"
                    AssemblyName = "System.Xml"
                />
                <Reference
                    Name = "Microsoft.VisualBasic.Vsa"
                    AssemblyName = "Microsoft.VisualBasic.Vsa"
                    HintPath =
"C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\Microsoft.VisualBasic.Vsa.dll"
                />
                <Reference
                    Name = "Microsoft.Vsa"
                    AssemblyName = "Microsoft.Vsa"
                    HintPath =
"C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\Microsoft.Vsa.dll"
                />
                <Reference
                    Name = "VFPToolkitNET_VB"
                    AssemblyName = "VFPToolkitNET_VB"
                    HintPath = "..\VFPNet\bin\VFPToolkitNET_VB.dll"
                />
                <Reference
                    Name = "Microsoft_VsaVb"
                    AssemblyName = "Microsoft_VsaVb"
                    HintPath =
"C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\Microsoft_VsaVb.dll"
                />
                <Reference
                    Name = "Microsoft.JScript"
                    AssemblyName = "Microsoft.JScript"
                    HintPath =
"C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\Microsoft.JScript.dll"
                />
                <Reference
                    Name = "System.Windows.Forms"
                    AssemblyName = "System.Windows.Forms"
                    HintPath =
"C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Windows.Forms.dll"
                />
                <Reference
                    Name = "Infragistics.WebUI.Shared.v2.1"
                    AssemblyName = "Infragistics.WebUI.Shared.v2.1"
                    HintPath =
"..\..\..\Programacion\Infragistics\NetAdvantage 2004 Volume
2\ASP.NET\Bin\Infragistics.WebUI.Shared.v2.1.dll"
                    AssemblyFolderKey =
"hklm\infragistics.webassemblies.20042"
                    Private = "True"
                />
                <Reference
                    Name = "Infragistics.WebUI.UltraWebGrid.v3.1"
                    AssemblyName = "Infragistics.WebUI.UltraWebGrid.v3.1"
                    HintPath =
"..\..\..\Programacion\Infragistics\NetAdvantage 2004 Volume
2\ASP.NET\Bin\Infragistics.WebUI.UltraWebGrid.v3.1.dll"
                    AssemblyFolderKey =
"hklm\infragistics.webassemblies.20042"
                />
                <Reference
                    Name = "Infragistics.WebUI.WebDataInput.v1.1"
                    AssemblyName = "Infragistics.WebUI.WebDataInput.v1.1"
                    HintPath =
"..\..\..\Programacion\Infragistics\NetAdvantage 2004 Volume
2\ASP.NET\Bin\Infragistics.WebUI.WebDataInput.v1.1.dll"
                    AssemblyFolderKey =
"hklm\infragistics.webassemblies.20042"
                />
            </References>
            <Imports>
                <Import Namespace = "Microsoft.VisualBasic" />
                <Import Namespace = "System" />
                <Import Namespace = "System.Data" />
                <Import Namespace = "System.Collections" />
                <Import Namespace = "System.Diagnostics" />
                <Import Namespace = "System.Management" />
            </Imports>
        </Build>

I try compiling each .vbproj individually (changin the extension in the
build file), said sucesfully build but really not do nothing. The first
project is a web project and the second is a class library.

I have two problems. The project "ActiveNET" was marked to
"http://localhost/ActiveNet"; and the build fail in public static bool
IsEnterpriseTemplateProject(string fileName) { in Project.cs, L n 132. I
then change from a web path to a normal path, and get the actual error. The
option with WebPath not work for me.

I try debug the thing but in not understand well C#.




-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to