I want to write color text to the Visual Studio output window from c#. I want to output red code from my unit tests.
Edited The code below works to display output in Windows Console, not to Visual Studio Output window (thanks @AnthonyLambert for correcting me).
Console.ForegroundColor = ConsoleColor.Magenta; //Choose from the Enum
Console.WriteLine("This message is to be in Magenta!");
Console.ResetColor();//Reset to default