Reputation: 40092
We are using VSO/VSTS' host build pool with the new vNext build platform. But suddenly, as of today, all of our builds have started breaking. This happens during the execution of a powershell script.
Error:
. 'C:\a\1\s\scripts\LocalPublish.ps1' --packOutput C:\a\1\a\MyProject --projectName "MyProject.Api" --buildConfiguration Release
Executing the following powershell script. (workingFolder = C:\a\1\s)
C:\a\1\s\scripts\LocalPublish.ps1 --packOutput C:\a\1\a\MyProject --projectName "MyProject.Api" --buildConfiguration Release
Microsoft .NET Development Utility Clr-x86-1.0.0-rc1-16231
[error]Error: The given path's format is not supported.
[error]Process completed with exit code 1 and had 1 error(s) written to the error stream.
Powershell script arguments:
--packOutput $(build.stagingDirectory)\MyProject --projectName "MyProject.Api" --buildConfiguration $(BuildConfiguration)
Can anyone explain why this has started happening?
Upvotes: 0
Views: 813
Reputation: 40092
It seems that a backwards incompatible change was introduced. From how I understand it, passing in parameters can now only be done using a single dash '-' and not a double dash '--'.
Build works when arguments are as follows:
-packOutput $(build.stagingDirectory)\MyProject -projectName "MyProject.Api" -buildConfiguration $(BuildConfiguration)
Upvotes: 1