psake/psake — Issue #27: Error when executing Invoke-psake without parameters
Author: Eskat0n
Created: 2012-02-14 05:45:29+00:00
State: open

The following error occurs when I'm executing Invoke-psake command without parameters intending to invoke default task in default.ps1 file in current directory. But then I am specifies either filename or task name (`default` in my case) Invoke-psake command executes correctly.

14.02.2012 11:39:59: An Error Occurred:
Test-Path : Cannot bind argument to parameter 'Path' because it is an empty string.
At D:\Configuration\Tools\Psake\psake.psm1:274 char:26
+ Assert (test-path <<<< $buildFile -pathType Leaf) ($msgs.error_build_file_not_found -f $buildFile)
+ CategoryInfo : InvalidData: (:) [Test-Path], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,Microsoft.PowerShell.Commands.Test
PathCommand