What am I doing wrong? I can't seem to get the -properties argument to work. I get the error below.
psake 4.2.0
<code>
properties {
$environment = "trunk"
}
task default -depends init
task init{
write-host $environment
}
</code>
PS C:\temp> psake .\testbuild.ps1 default -properties @{"environment"="trunk"}
C:\Chocolatey\lib\psake.4.2.0.1\tools\psake.ps1 : Cannot process argument transformation on parameter 'properties'. Can
not convert the "System.Collections.Hashtable" value of type "System.String" to type "System.Collections.Hashtable".
At line:1 char:89
+ & 'C:\Chocolatey\lib\psake.4.2.0.1\tools\\psake.ps1' .\testbuild.ps1 default -properties <<<< System.Collections.Has
htable; if ($psake.build_success -eq $false) { exit 1 } else { exit 0 }
+ CategoryInfo : InvalidData: (:) [psake.ps1], ParameterBindin...mationException
+ FullyQualifiedErrorId : ParameterArgumentTransformationError,psake.ps1