I've been using psake for our build system for quite some time without any issues on various OS/Bitness combinations however I've just been tasked with configuring a new Windows Server 2012 (64bit) build server and for some reason I am getting the following error when executing the build:
An Error Occurred:
The expression after '.' in a pipeline element produced a object that was not
valid. It must result in a command name, script block or CommandInfo object.
+ . $MyInvocation.MyCommand.Module $initialization
+ CategoryInfo : InvalidOperation: (:) , RuntimeException
+ FullyQualifiedErrorId : BadExpression
On all of my other machines (Windows 7, Server 2003, Server 2008) the same scripts are working just fine.
The only other difference I can find about these machines is that the new one (Windows Server 2012) has Powershell V3 but I am really hoping that isn't the problem.
Does anyone have any information that could help?