I got the following error when installing windirstat and ilmerge on Chocolatey . I suspect that the behavior of ampersands has changed in PowerShell 3.0.
Running powershell -NoProfile -ExecutionPolicy unrestricted -Command "& import-module -name 'C:\NuGet\chocolateyInstall\helpers\chocolateyInstaller.psm1'; & 'C:\NuGet\lib\ilmerge.2.10.526.4\tools\chocolateyInstall.ps1'". This may take awhile and permissions may need to be elevated, depending on the package. ilmerge did not finish successfully. Boo to the chocolatey gods! ----------------------- [ERROR] The expression after '&' in a pipeline element produced an invalid object. It must result in a command name, script block or Command Info object. -----------------------
source share