I tried the most recent nightly build and still didnt have any luck, I get
the following error:
C:\coreytest\nant_script\test.build(27,4):
Error loading assembly 'SecantCommon.dll'.
File or assembly name SecantCommon.dll, or one of its dependencies, was
not found.
Total time: 0.1 seconds.
here is my target:
Here is the target I created for this project:
<target name="test_script" description="test loading one of my assemblies">
<script language="C#">
<references basedir="C:\secant\1.0\app\bin"
failonempty="true">
<include name="SecantCommon.dll" asis="true"/>
</references>
<imports>
<import name="Secant.Util"/>
</imports>
<code>
<![CDATA[
public static void ScriptMain(Project
p){
Console.WriteLine(SecantConstant.ROOT_NODE);
}
]]>
</code>
</script>
</target>
HOWEVER, I removed the asis attribute and it worked this time.
I assume this is a stable release? How long until it comes out of Beta?
On a side note: I did notice that when trying to load other .NET namespaces
(i.e System.Data.SqlClient)
I also encountered a similar problem. The System.Messaging namespace would
also not load, however, the System.Web.Mail and System.Xml namespaces
would -- is it possible that I can only load namespaces that Nant uses
directly? Or are there concerns about using some classes in the build
scripts and not others?
Thanks Again,
Corey
-----Original Message-----
From: Gert Driesen [mailto:[EMAIL PROTECTED]
Sent: Monday, November 15, 2004 2:54 PM
To: 'Corey Krehel'; [EMAIL PROTECTED]
Subject: RE: [Nant-users] Error Using Script and Reference tags
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