eldo are you sure you're targeting the .NET Framework 1.1 ?

By default, NAnt targets the .NET Framework 1.0, to have it target .NET 1.1,
you can :

- set the nant.settings.currentframework property to net-1.1

    eg. <property name="nant.settings.currentframework" value="net-1.1" />

- set the target framework by passing the -defaultframework (-k) command
line switch to NAnt

    eg. NAnt.exe -buildfile:.... -k:net-1.1

- update the NAnt configuration file to change the default framework, but I
wouldn't recommend this ...

Gert

----- Original Message ----- 
From: "Eldo Daniel" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 18, 2003 6:17 PM
Subject: [Nant-users] name space does not exist


> I am trying to build an ASP.NET project using NAnd and keep getting this
error message:
>
>
> C:\danielel\WORK\DAIDS-ES\ARCHDEMO\DAIDSES.DataAccess\OraHelper.cs(15,20):
error CS0234: The type or namespace name 'OracleClient' does not exist in
the class or namespace 'System.Data' (are you missing an assembly
reference?)
>
>
> But I do have referenced System.Data.OracleClient in the References. Also,
if I build direclty from VisualStudio, no errors are shown and the build is
successful. Any one show some lights on the problem would be very helpful.
>
> Thanks.
>
>
> ---------------------------------
> Do you Yahoo!?
> New Yahoo! Photos - easier uploading and sharing



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to