Where is my Write-Verbose from my custom build task?

While working on my demo for Ignite New Zealand 2016, I decided to create a Docker Extension that would have a new Service Endpoint and a few tasks.  I wrote my build task using PowerShell and was using Write-Verbose to write useful information, but it did not appear while my build was running.  The only values I saw were the Write-Host calls.

Once the build was complete, I selected the Build Docker Image step and saw this:

As you can see, the bold lines are the same lines I saw in the build real-time output. The grey lines are the Write-Verbose calls.  Be sure to set the system.debug variable to true on the Variables tab or you will never see the Write-Verbose.

Add comment

Loading