3
Deleting folder 'C:\agent\_work\2\a\Foo\_PublishedWebsites\Foo\sourcejs'
Remove-Item : Windows PowerShell is in NonInteractive mode. Read and Prompt functionality is not available.
At C:\agent\_work\2\s\Build\Deployment\PrepareWebsites.ps1:29 char:2
+ Remove-Item -Path $source -Force -Confirm:$false | Where { $_.PSIsContainer }
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Remove-Item], PSInvalidOperationException
+ FullyQualifiedErrorId : InvalidOperation,Microsoft.PowerShell.Commands.RemoveItemCommand
Process completed with exit code 1 and had 1 error(s) written to the error stream.
Ich habe versucht, Hinzufügen -Force und -Konfirm: $ false, aber ich bekomme immer noch diesen Fehler. Verwenden von TFS 2015-Builds Hat jemand irgendwelche Ideen?Force funktioniert nicht im nicht interaktiven Modus
Wo ist Ihr Befehl? Benutzt du '-Recurse'? –
Danke, das -Recurse-Flag fehlte. Der ursprüngliche Befehl war wie oben: Remove-Item -Path $ source -Force -Bestätigung: $ false | Wobei {$ _. PSIsContainer} –