You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a Windows PowerShell console with screen text set to White, running a fake script through dotnet fake can exit with a display colour sticking like
Here the yellow from the warnings has persisted, but depending on the script and the state of the system being built, red, green or light grey can stick instead
Repro steps
Please provide the steps required to reproduce the problem
In a Windows PowerShell console, with default colurs (white on dark blue) navigate to a local FAKE repo
execute dotnet fake run .\build.fsx --target DotNetCoreUnitTests a number of times
Expected behavior
System colours are preserved always.
Actual behavior
See picture above for an example.
Known workarounds
Save Console.ForegroundColor ,and, to be paranoid, Console.BackgroundColor, on entry to the script, and then execute a final target to set the colours to the saved values.
Related information
Operating system -- WinX home
Branch -- released versions, also current release/next
.NET Runtime, CoreCLR or Mono Version -- .net 4.7 and various .net core
Indications of severity -- cosmetic
Version of FAKE (4.X, 5.X) 5.x pre-release certainly, can't remember if seen in 4.x
The text was updated successfully, but these errors were encountered:
@BlythMeister While ResetColor might fix this it would be interesting to know why the current code wouldn't work. AFAIK we serialize everything to a single mailbox processor which should take care of everything?
Description
In a Windows PowerShell console with screen text set to White, running a fake script through
dotnet fake
can exit with a display colour sticking likeHere the yellow from the warnings has persisted, but depending on the script and the state of the system being built, red, green or light grey can stick instead
Repro steps
Please provide the steps required to reproduce the problem
In a Windows PowerShell console, with default colurs (white on dark blue) navigate to a local FAKE repo
execute
dotnet fake run .\build.fsx --target DotNetCoreUnitTests
a number of timesExpected behavior
System colours are preserved always.
Actual behavior
See picture above for an example.
Known workarounds
Save
Console.ForegroundColor
,and, to be paranoid,Console.BackgroundColor
, on entry to the script, and then execute a final target to set the colours to the saved values.Related information
The text was updated successfully, but these errors were encountered: