Hello NAnt Geeks,

I am an NAnt user trying to write a NAnt build script
to build my project.It was interesting initially but then i was caught
up with a stupid build failure error message which is really making me
go mad ...I am wondering if you can help me in this..
 
I have 2 microsoft application exception blocks dll placed in a
different folder and my built script is unable to reference it during
execution. The project file(DataAccess Project) doesnt hold a direct
reference to these dll  but it holds a reference to an Exception
Management Project which holds a direct reference to these two dlls.
Visual Studio build this project without any errors, but Nant throws
me a Reference not found error and asks me to add one to the Data
Access project. I dont want to add any direct refernce to these dlls
in my DataAccess Project.

when i manually override the project file of the DataAccess Project with 
references(giving a hint path) to these dlls, the build succeeds..but i dont
want to do this in real life.

I am using solution task and assembly folders and it just simply
doesnt work. i have tried the latest nightly build too (NAnt 0.85
(Build 0.85.1631.0; net-1.0.win32; nightly; 6/19/2004)

Is there a way in Nant where i can modify or override the project file
references????

This is my build file:::::

<?xml version="1.0"?>

<project name="CFocus Build">

       <property name="debug" value="true"/>
       <property name="base.dir"
value="C:\Development\VisualStudioNet\Projects\sysCFocus\slnCFocus"/>
       <property name="SystemFramework" value="SystemFramework"/>
       <property name="ExceptionManagement" value="ExceptionManagement"/>
       <property name="DataAccess" value="DataAccess"/>
       <property name="SystemFramework.Project"
value="${SystemFramework}.vbproj"/>
       <property name="ExceptionManagement.Project"
value="${ExceptionManagement}.vbproj"/>
       <property name="DataAccess.Project" value="${DataAccess}.vbproj"/>

       <solution configuration="debug" verbose="true">

               <projects>
                       <include
name="${base.dir}\${SystemFramework}\${SystemFramework.Project}" />
                       <include
name="${base.dir}\${ExceptionManagement}\${ExceptionManagement.Project}"
/>
                       <include
name="${base.dir}\${DataAccess}\${DataAccess.Project}" />
               </projects>

               <assemblyfolders>
                       <fileset>
                               <include asis="true"
name="C:\Development\VisualStudioNet\Projects\sysCFocus\slnCFocus\ServiceAgents\Dependencies\MSExceptionBlock\Microsoft.ApplicationBlocks.ExceptionManagement.dll"
/>
                               <include asis="true"
name="C:\Development\VisualStudioNet\Projects\sysCFocus\slnCFocus\ServiceAgents\Dependencies\MSExceptionBlock\Microsoft.ApplicationBlocks.ExceptionManagement.Interfaces.dll"
/>
                       </fileset>
               </assemblyfolders>

       </solution>
</project>


And the error report is ::::::

           
C:\Development\VisualStudioNet\Projects\sysCFocus\slnCFocus\DataAccess\ActionRequests\Pa
c2000\AddressChangeRequestData.vb(181) : error BC30007: Reference
required to assembly 'Microsoft.Ap
plicationBlocks.ExceptionManagement' containing the base class
'Microsoft.ApplicationBlocks.Exceptio
nManagement.BaseApplicationException'. Add one to your project.

                               Throw
ExceptionHandler.NewEmptyDatasetException("The table (tblAddre
ssChangeRequests) has no data.")

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           
C:\Development\VisualStudioNet\Projects\sysCFocus\slnCFocus\DataAccess\ActionRequests\Pa
c2000\AddressChangeRequestData.vb(186) : error BC30007: Reference
required to assembly 'Microsoft.Ap
plicationBlocks.ExceptionManagement' containing the base class
'Microsoft.ApplicationBlocks.Exceptio
nManagement.BaseApplicationException'. Add one to your project.

                       Catch eEmptyDataset As EmptyDatasetException
                                              ~~~~~~~~~~~~~~~~~~~~~
           
C:\Development\VisualStudioNet\Projects\sysCFocus\slnCFocus\DataAccess\ActionRequests\Pa
c2000\AddressChangeRequestData.vb(190) : error BC30007: Reference
required to assembly 'Microsoft.Ap
plicationBlocks.ExceptionManagement' containing the base class
'Microsoft.ApplicationBlocks.Exceptio
nManagement.BaseApplicationException'. Add one to your project.

                           Throw
ExceptionHandler.NewDataAccessException("A problem occurred commun
icating with dbCFocus (tblAddressChangeRequests).", eSql)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I really appreciate you guys help in this...

Thanks,

Madhan.


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to