Hi there,
I am trying to create a build script with nant to compile our web project. It seems that when the compiler reaches a custom imports it gives me the following error: error BC30464: Namespace or type 'DL' in the project-level Imports GB.CM.DL cannot be found. ----> GB.CM.DL is the root namespace of a reference DLL that is included error BC30466: Namespace or type 'DL' for the imports 'GB.CM.DL' cannot be found I am kind of new to this but the below is the script that I created to build the application. buildCommonDL,buildAMMaintenanceDL,buildFASMaintenanceDL all seem to compile correctly. <?xml version="1.0"?> <!-- GBCM Maintenance Build --> <project name="GBCM_Maintenance" default="buildGBCMMaintenance" basedir="c:\inetpub\wwwroot\gbcm_maintenance\bin"> <echo message="This project builds the GBCM application"/> <echo message="Target Framework is ${nant.settings.currentframework}"/> <target name="buildCommonDL" description="Build CommonDL"> <vbc target="library" output="c:\inetpub\wwwroot\gbcm_maintenance\CommonDL\bin\CommonDL.dll" rootnamespace="GB.CM"> <sources> <include name="c:\inetpub\wwwroot\gbcm_maintenance\CommonDL\DataServices.vb"/> <include name="c:\inetpub\wwwroot\gbcm_maintenance\CommonDL\ConstantsDL.vb"/> </sources> <arg value="/reference:System.dll"/> <arg value="/reference:System.Data.dll"/> <arg value="/reference:System.EnterpriseServices.dll"/> <arg value="/reference:System.XML.dll"/> <arg value="/imports:System.Data"/> <arg value="/imports:System.Data.OleDb"/> <arg value="/imports:System.Text"/> <arg value="/imports:System.Text.RegularExpressions"/> <arg value="/imports:System.EnterpriseServices"/> <arg value="/imports:System.IO"/> <arg value="/imports:System.Collections"/> <arg value="/imports:Microsoft.Win32"/> <arg value="/imports:Microsoft.VisualBasic"/> <arg value="/imports:System"/> </vbc> </target> <target name="buildCommonBL" description="Build CommonBL" depends="buildCommonDL"> <vbc target="library" output="c:\inetpub\wwwroot\gbcm_maintenance\CommonBL\bin\CommonBL.dll" rootnamespace="GB.CM"> <sources> <include name="c:\inetpub\wwwroot\gbcm_maintenance\CommonBL\CommonBL.vb"/> </sources> <arg value="/reference:System.dll"/> <arg value="/reference:System.Data.dll"/> <arg value="/reference:c:\inetpub\wwwroot\gbcm_maintenance\CommonDL\bin\CommonDL.dll"/> <arg value="/reference:Microsoft.ApplicationBlocks.ExceptionManagement.dll"/> <arg value="/reference:Microsoft.ApplicationBlocks.ExceptionManagement.Interfaces.dll"/> <arg value="/reference:System.EnterpriseServices.dll"/> <arg value="/reference:System.XML.dll"/> <arg value="/imports:GB.CM.DSOCommon"/> <arg value="/imports:Microsoft.ApplicationBlocks.ExceptionManagement"/> <arg value="/imports:System.Data.OleDb"/> </vbc> </target> <target name="buildAMMaintenanceDL" description="Build AMMaintenanceDL" depends="buildCommonDL"> <vbc target="library" output="c:\inetpub\wwwroot\gbcm_maintenance\GBCM_AMMaintenanceDL\bin\GBCM_AMMaintenanceDL.dll" rootnamespace="GB.CM.DL"> <sources> <include name="c:\inetpub\wwwroot\gbcm_maintenance\GBCM_AMMaintenanceDL\AMMaintenanceDL.vb"/> </sources> <arg value="/reference:System.dll"/> <arg value="/reference:System.Data.dll"/> <arg value="/reference:c:\inetpub\wwwroot\gbcm_maintenance\CommonDL\bin\CommonDL.dll"/> <arg value="/reference:System.EnterpriseServices.dll"/> <arg value="/reference:System.XML.dll"/> <arg value="/imports:System.Data"/> <arg value="/imports:System.Text"/> <arg value="/imports:System.Data.OleDb"/> <arg value="/imports:System.Text"/> <arg value="/imports:System.Text.RegularExpressions"/> <arg value="/imports:System.EnterpriseServices"/> <arg value="/imports:Microsoft.Win32"/> <arg value="/imports:GB.CM"/> <arg value="/imports:Microsoft.VisualBasic"/> <arg value="/imports:System"/> </vbc> </target> <target name="buildAMMaintenance" description="Build AMMaintenance" depends="buildAMMaintenanceDL"> <vbc target="library" output="c:\inetpub\wwwroot\gbcm_maintenance\GBCM_AMMaintenance\bin\GBCM_AMMaintenance.dll" rootnamespace="GB.CM.BL"> <sources> <include name="c:\inetpub\wwwroot\gbcm_maintenance\GBCM_AMMaintenance\AMMaintenance.vb"/> </sources> <arg value="/reference:System.dll"/> <arg value="/reference:System.Data.dll"/> <arg value="/reference:c:\inetpub\wwwroot\gbcm_maintenance\GBCM_AMMaintenanceDL\bin\GBCM_AMMaintenanceDL.dll"/> <arg value="/reference:System.EnterpriseServices.dll"/> <arg value="/reference:System.XML.dll"/> <arg value="/reference:Microsoft.ApplicationBlocks.ExceptionManagement.dll"/> <arg value="/reference:Microsoft.ApplicationBlocks.ExceptionManagement.Interfaces.dll"/> <arg value="/imports:System.EnterpriseServices"/> <arg value="/imports:GB.CM.DL"/> <arg value="/imports:Microsoft.Win32"/> <arg value="/imports:Microsoft.VisualBasic"/> <arg value="/imports:System"/> </vbc> </target> <target name="buildFASMaintenanceDL" description="Build FASMaintenanceDL" depends="buildAMMaintenanceDL"> <vbc target="library" output="c:\inetpub\wwwroot\gbcm_maintenance\GBCM_FASMaintenanceDL\bin\GBCM_FASMaintenanceDL.dll" rootnamespace="GB.CM.DL"> <sources> <include name="c:\inetpub\wwwroot\gbcm_maintenance\GBCM_FASMaintenanceDL\FASMaintenanceDL.vb"/> </sources> <arg value="/reference:System.dll"/> <arg value="/reference:System.Data.dll"/> <arg value="/reference:c:\inetpub\wwwroot\GBCM_Maintenance\CommonDL\bin\CommonDL.dll"/> <arg value="/reference:System.EnterpriseServices.dll"/> <arg value="/reference:System.XML.dll"/> <arg value="/reference:Microsoft.ApplicationBlocks.ExceptionManagement.dll"/> <arg value="/reference:Microsoft.ApplicationBlocks.ExceptionManagement.Interfaces.dll"/> <arg value="/imports:System.Data"/> <arg value="/imports:System.Text"/> <arg value="/imports:System.EnterpriseServices"/> <arg value="/imports:Microsoft.Win32"/> <arg value="/imports:GB.CM.DL"/> <arg value="/imports:Microsoft.VisualBasic"/> <arg value="/imports:System.Diagnostics"/> <arg value="/imports:System.Collections"/> <arg value="/imports:System"/> </vbc> </target> <target name="buildFASMaintenance" description="Build FASMaintenance" depends="buildFASMaintenanceDL"> <vbc target="library" output="c:\inetpub\wwwroot\gbcm_maintenance\GBCM_FASMaintenance\bin\GBCM_FASMaintenance.dll" rootnamespace="GB.CM.BL"> <sources> <include name="c:\inetpub\wwwroot\gbcm_maintenance\GBCM_FASMaintenance\FASMaintenance.vb"/> </sources> <arg value="/reference:System.dll"/> <arg value="/reference:System.Data.dll"/> <arg value="/reference:c:\inetpub\wwwroot\GBCM_Maintenance\GBCM_AMMaintenanceDL\bin\GBCM_AMMaintenanceDL.dll"/> <arg value="/reference:c:\inetpub\wwwroot\GBCM_Maintenance\GBCM_FASMaintenanceDL\bin\GBCM_FASMaintenanceDL.dll"/> <arg value="/reference:System.EnterpriseServices.dll"/> <arg value="/reference:System.XML.dll"/> <arg value="/reference:Microsoft.ApplicationBlocks.ExceptionManagement.dll"/> <arg value="/reference:Microsoft.ApplicationBlocks.ExceptionManagement.Interfaces.dll"/> <arg value="/imports:System.Data"/> <arg value="/imports:System.Text"/> <arg value="/imports:System.EnterpriseServices"/> <arg value="/imports:Microsoft.Win32"/> <arg value="/imports:Microsoft.VisualBasic"/> <arg value="/imports:GB.CM.DL"/> <arg value="/imports:System"/> <arg value="/imports:System.Collections"/> </vbc> </target> <target name="buildGBCMMaintenance" description="Build GBCM_Maintenance" depends="buildFASMaintenance"> <vbc target="library" output="c:\inetpub\wwwroot\gbcm_maintenance\bin\GBCM_Maintenance.dll" rootnamespace="GBCM_Maintenance"> <sources> <include name="c:\inetpub\wwwroot\gbcm_maintenance\Common\GBCMFunctions.vb"/> <include name="c:\inetpub\wwwroot\gbcm_maintenance\Common\GlobalConstants.vb"/> <include name="c:\inetpub\wwwroot\gbcm_maintenance\UserControls\FASItem.ascx.vb"/> <include name="c:\inetpub\wwwroot\gbcm_maintenance\UserControls\Header.ascx.vb"/> <include name="c:\inetpub\wwwroot\gbcm_maintenance\UserControls\Search.ascx.vb"/> <include name="c:\inetpub\wwwroot\gbcm_maintenance\AMFillinFormLink.aspx.vb"/> <include name="c:\inetpub\wwwroot\gbcm_maintenance\AMMaintenance.aspx.vb"/> <include name="c:\inetpub\wwwroot\gbcm_maintenance\AMMaintenanceView.vb"/> <include name="c:\inetpub\wwwroot\gbcm_maintenance\FASMaintenance.aspx.vb"/> <include name="c:\inetpub\wwwroot\gbcm_maintenance\FASMaintenanceView.aspx.vb"/> <include name="c:\inetpub\wwwroot\gbcm_maintenance\GBCMAdmin.aspx.vb"/> <include name="c:\inetpub\wwwroot\gbcm_maintenance\GBCMAdminCreateFillin.aspx.vb"/> <include name="c:\inetpub\wwwroot\gbcm_maintenance\GBCMAdminCreateForm.aspx.vb"/> <include name="c:\inetpub\wwwroot\gbcm_maintenance\Login.aspx.vb"/> <include name="c:\inetpub\wwwroot\gbcm_maintenance\SearchMaintenance.aspx.vb"/> <include name="c:\inetpub\wwwroot\gbcm_maintenance\Common\EnglishLabels.aspx.vb"/> <include name="c:\inetpub\wwwroot\gbcm_maintenance\Common\FrenchLabels.aspx.vb"/> </sources> <arg value="/reference:System.dll"/> <arg value="/reference:System.Data.dll"/> <arg value="/reference:System.Web.dll"/> <arg value="/reference:c:\inetpub\wwwroot\GBCM_Maintenance\GBCM_AMMaintenance\bin\GBCM_AMMaintenance.dll"/> <arg value="/reference:c:\inetpub\wwwroot\GBCM_Maintenance\GBCM_FASMaintenance\bin\GBCM_FASMaintenance.dll"/> <arg value="/reference:c:\inetpub\wwwroot\GBCM_Maintenance\CommonBL\bin\CommonBL.dll"/> <arg value="/reference:Microsoft.ApplicationBlocks.Data.dll"/> <arg value="/reference:Microsoft.ApplicationBlocks.ExceptionManagement.dll"/> <arg value="/reference:Microsoft.ApplicationBlocks.ExceptionManagement.Interfaces.dll"/> <arg value="/reference:c:\inetpub\wwwroot\gbcm_maintenance\bin\UserAccessControl.dll"/> <arg value="/reference:System.EnterpriseServices.dll"/> <arg value="/reference:System.XML.dll"/> <arg value="/reference:System.Drawing.dll"/> <arg value="/imports:System.Data"/> <arg value="/imports:System.Text"/> <arg value="/imports:System.EnterpriseServices"/> <arg value="/imports:Microsoft.Win32"/> <arg value="/imports:Microsoft.VisualBasic"/> <arg value="/imports:System"/> <arg value="/imports:System.Collections"/> <arg value="/imports:GB.CM.BL"/> <arg value="/imports:GBCM_Maintenance"/> <arg value="/imports:GBCM_Maintenance.AppConst"/> <arg value="/imports:System.Resources"/> <arg value="/imports:GB.Shared.Intraglobal.UT"/> <arg value="/imports:System.Web"/> <arg value="/imports:System.Web.UI"/> <arg value="/imports:System.Web.UI.WebControls"/> <arg value="/imports:System.Web.UI.HtmlControls"/> <arg value="/imports:System.Configuration"/> </vbc> </target> </project> thanks in advance for any help you can give.....I am starting to get slightly frustrated with this as it does not seem to make sense. Michael Kosow Application Developer (Aztec) Group Benefits IT 514-866-6411 x2492 --------------------------------------------------------------------------- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender and erase this e-mail message immediately. --------------------------------------------------------------------------- Le présent message électronique (y compris les pièces qui y sont annexées, le cas échéant) s'adresse au destinataire indiqué et peut contenir des renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le destinataire de ce document, nous vous signalons qu'il est strictement interdit de le diffuser, de le distribuer ou de le reproduire. Si ce message vous a été transmis par erreur, veuillez en informer l'expéditeur et le supprimer immédiatement. --------------------------------------------------------------------------- ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ nant-developers mailing list nant-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-developers