A question I often get asked is why psake does not include something similar to NAnt’s <replacetokens>. The reason is because it’s so darn easy to do it in PowerShell. Given foo.txt.template: @@foo@@ is @@bar@@!!! The following script will perform the replacement: # replace.tokens.ps1 $foo = ‘PowerShell’ $bar = ‘da bomb’ (cat foo.txt.template) -replace ‘@@foo@@’, […]