Hi Ashish,
 
Ref and out arguments are not supported, but feel free to post a patch for
this.
 
Gert

  _____  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ashish Mittal
Sent: donderdag 20 september 2007 10:19
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] prb in calling custom functions



Hi,

       I am writing a function in C# in NAnt build file using <script task>.

 

I am trying to return more than one value from this function 

1)Boolean

2)string

 

I came to know that we can use  keyword ref or out for returning more than
one value from the function.

But when I call this function using ref or out it gives me error like

 

 

<project name="EAC" default="test" basedir=".">

<include buildfile="Installshield.xml"/>

<property name="project.name" value="sajd"/>

 

<target name="test">

 

 

<if test="${mytasks::CheckForBinary('Iris2pi.dll',ref project.name)}">//here
I am calling function CheckForBibanry

<echo message="found"/>

<echo message="${project.name}"/>

</if>

 

 

</target>

</project>

 

 

 

Property ref has not been set. It is treating the ref keyword as a  property

 

How can I pass the ref or out keyword to the custom function

 

######################################### THIS EMAIL MESSAGE IS FOR THE SOLE
USE OF THE INTENDED RECIPIENT(S) AND MAY CONTAIN CONFIDENTIAL AND PRIVILEGED
INFORMATION. ANY UNAUTHORIZED REVIEW, USE, DISCLOSURE OR DISTRIBUTION IS
PROHIBITED.BEFORE OPENING ANY ATTACHMENTS PLEASE CHECK FOR VIRUSES AND
DEFECTS.IF YOU ARE NOT THE INTENDED RECIPIENT, PLEASE NOTIFY US IMMEDIATELY
BY REPLY E-MAIL AND DELETE THE ORIGINAL MESSAGE.
#########################################

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to