人生是一场不能存盘的RPG,我只能尽量多搞几个Screenshot

June 10, 2006

在NAnt中使用C#,VB脚本

Filed under: NAnt

http://nant.sourceforge.net/release/latest/help/tasks/script.html

核心就是使用<script>

<script language=”C#” prefix=”test” >
<code>
<![CDATA[
[Function(”test-func”)]
public static string Testfunc( )

{
return “some result !”;
}
]]>
</code>
</script>
<echo message=’${test::test-func()}’/>

最酷的是用c#定义一个 custom task 并调用.

Comments »

The URI to TrackBack this entry is: http://recordsome.blogsome.com/2006/06/10/p103/trackback/

No comments yet.

RSS feed for comments on this post.

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>



Anti-spam measure: please retype the above text into the box provided.






















Get free blog up and running in minutes with Blogsome
Theme designed by Hadley Wickham