From: Scott H. <sk...@eo...> - 2003-04-30 00:14:50
|
The all encompassing <script> tag will come to the rescue... <script language="C#"> <code> <![CDATA[ public static void ScriptMain(Project project) { project.Properties.AddReadOnly("datestamp", DateTime.Now.ToString("yyyyMMdd")); } ]]> </code> </script> ----- Original Message ----- From: "Calbazana, Al" <Al....@mo...> To: <nan...@li...> Sent: Tuesday, April 29, 2003 12:42 PM Subject: [Nant-users] Setting a property value dynamically > Hello, > > How can I set a property dynamically? > > Example: > > <property name="datestamp" value="<get today's date or time>"/> > > I'd like to implement a way to issue build #s (I see someone is already > working on build numbers but my current build needs do not require > strong build numbers) - for now, a datetime stamp will do just fine. > > Thanks, > > Alejandro > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Nant-users mailing list > Nan...@li... > https://lists.sourceforge.net/lists/listinfo/nant-users > > |