Monthly Archives: July 2011

Token Replacement in PowerShell

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 … Continue reading 

Posted in PowerShell | 2 Comments