Gayathri,
you need to add the assemblies you are referencing to the <references> element of your task. Somthing like:


<vbc target="exe" output="myexe.exe">
       <sources>
          <includes name="myexe.vb" />
       </sources>
        <references>      
            <includes name="System.dll"/>
             <includes name="System.Data.dll" />
         </references>
    </vbc>

If that doesn't fix your problem can you please post the contents of your build file here along with the complete output from nant. Thanks

Ian


Gayathri Jacobs wrote:


Hi,

I am experiencing some compiling issues with NAnt. It seems that it is not finding .NET framework classes or namespaces.

For instance, I am recieving the following error:

Name space of type Data for the Imports 'System.Data' cannot be found.

Any suggestions?

_Curtney




--
Ian MacLean, Developer, ActiveState, a division of Sophos
http://www.ActiveState.com




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to