I've been using pSake for a few weeks now and everything was working
We currently call the builds sucessfully on both desktops and the CI
server like this:
> powershell.exe .\build.ps1 (this script imports the module and invokes pSake on the tasks file)
However, for various reasons (I can elaborate if needed), I realised I
needed to invoke pSake like this:
> powershell.exe -File build.ps1
However this approach failed, giving the following error message:
The variable '$script:context' cannot be retrieved because it has not
At C:\Documents and Settings\Administrator\Desktop\Powershell\pSake
+ [system.collections.stack]$script:context <<<<
+ CategoryInfo : InvalidOperation: (script:context:Token)
+ FullyQualifiedErrorId : VariableIsUndefined
I could not find any information on this online, and I have reproduced
it on a few machines.
Note that I get the same error message when running build.ps1 from the
ISE, which would be nice for debugging purposes.
Would anyone have any ideas on what could be the cause of this, and
how to fix it?
You received this message because you are subscribed to the Google Groups "psake-users" group.
To post to this group, send email to email@example.com.
To unsubscribe from this group, send email to firstname.lastname@example.org.
For more options, visit this group at http://groups.google.com/group/psake-users?hl=en.