Hi everyone,
I've been using pSake for a few weeks now and everything was working
great!
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
been set.
At C:\Documents and Settings\Administrator\Desktop\Powershell\pSake
\pSake.psm1:24 char:42
+ [system.collections.stack]$script:context <<<<
+ CategoryInfo : InvalidOperation: (script:context:Token)
[], ParentContainsErrorRecordException
+ 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?
Thanks,
Romain
--
You received this message because you are subscribed to the Google Groups "psake-users" group.
To post to this group, send email to
psake...@googlegroups.com.
To unsubscribe from this group, send email to
psake-users...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/psake-users?hl=en.