I have a simple psake script:
properties { $SolutionDir = "SOLUTIONDIR" # Resolve-Path ".\src" $Config = "Debug" $DeployBaseDir = "$SolutionDir\RMSS.Setup.WiX\bin\$Config" $InstallerName = "RMSForMoversSuite_2_0_0" } task default -depends Test task Test { "CONFIG = $Config" "SOLUTIONDIR = $SolutionDir" "DEPLOYBASEDIR = $DeployBaseDir" }
And I call it from the command line as follows:
& .\psake.ps1 .\deploy.ps1 -properties @{"Config"="Staging"}
I would expect $DeployBaseDir be equal to SOLUTIONDIR\RMSS.Setup.WiX\bin\Staging
But instead, I get this output:
CONFIG = Staging SOLUTIONDIR = SOLUTIONDIR DEPLOYBASEDIR = SOLUTIONDIR\RMSS.Setup.WiX\bin\Debug
Can someone tell me what is happening, why and how to get the behavior that I expect?
source share