A macro performs some task and returns a string. Calling a macro looks like this:
@{MacroName(paramvValue1,paramValue2)}

These are the currently supported macros:
  • GetFileSize ( file )
    • This will get the file size of {file}.
  • BuildConditionToConfiguration ( )
    • Returns "Release" if the BuildCondition is "ForceBuild" otherwise it will return "Debug"
  • DateTimeToString(DateString, FormatString)
    • Returns a DateTime formated using the FormatString
  • DateTimeToString(FormatString)
    • Returns current DateTime formated using the FormatString
  • XslTransform ( xpathToRootElement, xslUrl )
    • Performs an Xsl Transform on the xml element selected from the frist argument in the integration task results

If you have request for macros, post comments here or in the discussions section.

Last edited May 2, 2008 at 4:11 PM by camalot, version 2

Comments

No comments yet.