Corey,

Can you try using a recent nightly build of NAnt
(http://nant.sourceforge.net/nightly/builds) ?

Thanks !

Gert 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Corey Krehel
> Sent: maandag 15 november 2004 23:13
> To: [EMAIL PROTECTED]
> Subject: [Nant-users] Error Using Script and Reference tags
> 
> I am attempting to use the script tag to execute tasks based 
> on the success
> or failure of my project.
> In order to do everything I want to do, I am attempting to 
> use classes in
> one of my application dlls.
> Below is a copy of the test project I have created:
> <target name="test_script" description="test the script tag">
> 
>               <script language="C#">
> 
>                <references basedir="${project.bin.path}"  
> failonempty="true">
>                       <includes name="SecantCommon.dll" asis="true"/>
>               </references>
> 
>               <imports>
>                       <import name="Secant.Util"/>
>               </imports>
>                       <code>
>                               <![CDATA[
>                                       public static void 
> ScriptMain(Project p){
>                                               
> Console.WriteLine(SecantConstants.ROOT_NODE);
>                                       }
> 
>                               ]]>
>                       </code>
>               </script>
> 
>       </target>
> 
> 
> The project.bin.path property is correct as is the dll name, 
> however, when I
> attempt to run the project I get the following error:
> c:\Documents and Settings\corey\Local 
> Settings\Temp\yfu-uvma.0.cs(9,7) :
> error CS0246: The type or namespace name 'Secant' could not 
> be found (are
> you
>  missing a using directive or an assembly reference?)
> 
> Has anyone else experienced this, are there some namespaces 
> that nant will
> not allow?
> 
> 
> Thanks in advance
> 
> Corey Krehel
> Secant, Inc.
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: InterSystems CACHE
> FREE OODBMS DOWNLOAD - A multidimensional database that combines
> robust object and relational technologies, making it a perfect match
> for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
> _______________________________________________
> Nant-users mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/nant-users
> 
> 



-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to