PowerShell output lines wrap at 83 characters (Feature #270)

Added by Aaron Jensen over 4 years ago. Updated over 3 years ago.

Status:Feedback Start date:03/13/2013
Priority:Normal Due date:
Assignee:- % Done:


Category:- Spent time: -
Target version:1.9


By default, PowerShell ouput is wrapped at 83 characters. This makes it really hard to read the build log. Please update the PowerShell task to have longer lines, preferably unlimited.

ProcessTaskResult.cs (3.2 kB) Aaron Jensen, 03/13/2013 01:02 am

PowerShellTaskTest.cs (13.9 kB) Aaron Jensen, 03/13/2013 01:02 am


Updated by Aaron Jensen over 4 years ago

The fix is to use the -Command switch to PowerShell, and before executing the script given by the user, run this code:

$Host.UI.RawUI.BufferSize = New-Object Management.Automation.Host.Size (9999, 9999) ;

It changes the width of PowerShell's internal buffer.

I've attached my files with this change.

Updated by Ruben Willems about 4 years ago

I think you uploaded a wrong file, the powershelltask.cs is not attached.
and comparing the processtaskresults with the one from source did not found any differences.

  • Status changed from New to Feedback

Updated by Ruben Willems almost 4 years ago

  • Target version set to 1.8.5

Updated by Ruben Willems over 3 years ago

  • Target version changed from 1.8.5 to 1.9

Also available in: Atom PDF