I solved this by passing the properties Hashtable
as a string
.
psake TestProperties -properties "@{tags='test'}"
I'd also recommend running the command from the command prompt as opposed to powershell. Because the psake
command works by calling a .bat
file, which then calls a .cmd
which in turn executes a .ps1
file, using ampersands in the properties caused issues when the command was execute from powershell.
For example the following command succesfully runs from the command prompt but errors when run from the powershell console:
psake TestProperties -properties "@{tags='test^&wip'}"
Note the use of ^
to escape the &
character.