79 writes to ForegroundColor
AnalyzerRunner (1)
Program.cs (1)
221Console.ForegroundColor = color;
ClientSample (2)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (2)
41Console.ForegroundColor = (ConsoleColor)(((int)Console.ForegroundColor & 0x08) | ((int)color & 0x07)); 52Console.ForegroundColor = (ConsoleColor)((int)Console.ForegroundColor ^ 0x08);
dotnet (1)
Commands\Test\MTP\Terminal\SystemConsole.cs (1)
96=> Console.ForegroundColor = color;
dotnet-dev-certs (3)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (2)
41Console.ForegroundColor = (ConsoleColor)(((int)Console.ForegroundColor & 0x08) | ((int)color & 0x07)); 52Console.ForegroundColor = (ConsoleColor)((int)Console.ForegroundColor ^ 0x08);
src\Tools\Shared\CommandLine\PhysicalConsole.cs (1)
35set => Console.ForegroundColor = value;
dotnet-format (1)
Logging\SimpleConsoleLogger.cs (1)
66Console.ForegroundColor = LogLevelColorMap[logLevel];
dotnet-getdocument (3)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (2)
41Console.ForegroundColor = (ConsoleColor)(((int)Console.ForegroundColor & 0x08) | ((int)color & 0x07)); 52Console.ForegroundColor = (ConsoleColor)((int)Console.ForegroundColor ^ 0x08);
src\Tools\Shared\CommandLine\PhysicalConsole.cs (1)
35set => Console.ForegroundColor = value;
dotnet-openapi (3)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (2)
41Console.ForegroundColor = (ConsoleColor)(((int)Console.ForegroundColor & 0x08) | ((int)color & 0x07)); 52Console.ForegroundColor = (ConsoleColor)((int)Console.ForegroundColor ^ 0x08);
src\Tools\Shared\CommandLine\PhysicalConsole.cs (1)
35set => Console.ForegroundColor = value;
dotnet-sql-cache (3)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (2)
41Console.ForegroundColor = (ConsoleColor)(((int)Console.ForegroundColor & 0x08) | ((int)color & 0x07)); 52Console.ForegroundColor = (ConsoleColor)((int)Console.ForegroundColor ^ 0x08);
src\Tools\Shared\CommandLine\PhysicalConsole.cs (1)
35set => Console.ForegroundColor = value;
dotnet-svcutil-lib (4)
ToolConsole.cs (4)
141Console.ForegroundColor = ConsoleColor.Yellow; 143Console.ForegroundColor = originalColor; 147Console.ForegroundColor = ConsoleColor.Red; 149Console.ForegroundColor = originalColor;
dotnet-user-jwts (3)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (2)
41Console.ForegroundColor = (ConsoleColor)(((int)Console.ForegroundColor & 0x08) | ((int)color & 0x07)); 52Console.ForegroundColor = (ConsoleColor)((int)Console.ForegroundColor ^ 0x08);
src\Tools\Shared\CommandLine\PhysicalConsole.cs (1)
35set => Console.ForegroundColor = value;
dotnet-user-secrets (3)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (2)
41Console.ForegroundColor = (ConsoleColor)(((int)Console.ForegroundColor & 0x08) | ((int)color & 0x07)); 52Console.ForegroundColor = (ConsoleColor)((int)Console.ForegroundColor ^ 0x08);
src\Tools\Shared\CommandLine\PhysicalConsole.cs (1)
35set => Console.ForegroundColor = value;
dotnet-watch (1)
UI\PhysicalConsole.cs (1)
107set => Console.ForegroundColor = value;
GetDocument.Insider (3)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (2)
41Console.ForegroundColor = (ConsoleColor)(((int)Console.ForegroundColor & 0x08) | ((int)color & 0x07)); 52Console.ForegroundColor = (ConsoleColor)((int)Console.ForegroundColor ^ 0x08);
src\Tools\Shared\CommandLine\PhysicalConsole.cs (1)
35set => Console.ForegroundColor = value;
HttpStress (8)
Program.cs (8)
546Console.ForegroundColor = ConsoleColor.Cyan; 553Console.ForegroundColor = ConsoleColor.DarkRed; 560Console.ForegroundColor = ConsoleColor.Cyan; 563Console.ForegroundColor = ConsoleColor.Green; 567Console.ForegroundColor = ConsoleColor.DarkRed; 605Console.ForegroundColor = ConsoleColor.Yellow; 763Console.ForegroundColor = ConsoleColor.DarkYellow; 772Console.ForegroundColor = ConsoleColor.DarkGray;
Microsoft.AspNetCore.Shared.Tests (2)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (2)
41Console.ForegroundColor = (ConsoleColor)(((int)Console.ForegroundColor & 0x08) | ((int)color & 0x07)); 52Console.ForegroundColor = (ConsoleColor)((int)Console.ForegroundColor ^ 0x08);
Microsoft.Build (1)
Logging\BaseConsoleLogger.cs (1)
308Console.ForegroundColor = TransformColor(c, ConsoleConfiguration.BackgroundColor);
Microsoft.CodeAnalysis.Scripting (1)
Hosting\CommandLine\ConsoleIO.cs (1)
31public virtual void SetForegroundColor(ConsoleColor consoleColor) => Console.ForegroundColor = consoleColor;
Microsoft.DotNet.Cli.Utils (2)
AnsiConsole.cs (2)
46Console.ForegroundColor = 143Console.ForegroundColor = OriginalForegroundColor;
Microsoft.DotNet.HotReload.Agent.Host.Package (1)
StartupHook.cs (1)
163Console.ForegroundColor = ConsoleColor.DarkGray;
Microsoft.DotNet.SignCheckLibrary (2)
Logging\ConsoleLogger.cs (2)
41Console.ForegroundColor = ConsoleColor.Red; 43Console.ForegroundColor = fgColor;
Microsoft.DotNet.VersionTools.Cli (2)
ConsoleLogger.cs (2)
18Console.ForegroundColor = ConsoleColor.Red; 20Console.ForegroundColor = fgColor;
Microsoft.Extensions.DotNetDeltaApplier (1)
StartupHook.cs (1)
163Console.ForegroundColor = ConsoleColor.DarkGray;
Microsoft.Extensions.Logging.Console (1)
AnsiParsingLogConsole.cs (1)
50System.Console.ForegroundColor = foreground.Value;
Microsoft.ML.Core (1)
Environment\ConsoleEnvironment.cs (1)
87Console.ForegroundColor = messageColor;
Microsoft.Win32.Msi.Manual.Tests (6)
Program.cs (6)
191Console.ForegroundColor = ConsoleColor.DarkGreen; 193Console.ForegroundColor = fg; 212Console.ForegroundColor = ConsoleColor.Green; 214Console.ForegroundColor = fg; 224Console.ForegroundColor = ConsoleColor.Green; 226Console.ForegroundColor = fg;
RunTests (2)
ConsoleUtil.cs (2)
56Console.ForegroundColor = color; 62Console.ForegroundColor = saved;
rzc (2)
CommandLine\AnsiConsole.cs (2)
38Console.ForegroundColor = (ConsoleColor)(((int)Console.ForegroundColor & 0x08) | ((int)color & 0x07)); 49Console.ForegroundColor = (ConsoleColor)((int)Console.ForegroundColor ^ 0x08);
SDDLTests (1)
Program.cs (1)
94Console.ForegroundColor = ConsoleColor.Red;
Swaggatherer (2)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (2)
41Console.ForegroundColor = (ConsoleColor)(((int)Console.ForegroundColor & 0x08) | ((int)color & 0x07)); 52Console.ForegroundColor = (ConsoleColor)((int)Console.ForegroundColor ^ 0x08);
Templates.Blazor.Tests (2)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (2)
41Console.ForegroundColor = (ConsoleColor)(((int)Console.ForegroundColor & 0x08) | ((int)color & 0x07)); 52Console.ForegroundColor = (ConsoleColor)((int)Console.ForegroundColor ^ 0x08);
Templates.Blazor.WebAssembly.Auth.Tests (2)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (2)
41Console.ForegroundColor = (ConsoleColor)(((int)Console.ForegroundColor & 0x08) | ((int)color & 0x07)); 52Console.ForegroundColor = (ConsoleColor)((int)Console.ForegroundColor ^ 0x08);
Templates.Blazor.WebAssembly.Tests (2)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (2)
41Console.ForegroundColor = (ConsoleColor)(((int)Console.ForegroundColor & 0x08) | ((int)color & 0x07)); 52Console.ForegroundColor = (ConsoleColor)((int)Console.ForegroundColor ^ 0x08);
Templates.Mvc.Tests (2)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (2)
41Console.ForegroundColor = (ConsoleColor)(((int)Console.ForegroundColor & 0x08) | ((int)color & 0x07)); 52Console.ForegroundColor = (ConsoleColor)((int)Console.ForegroundColor ^ 0x08);
Templates.Tests (2)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (2)
41Console.ForegroundColor = (ConsoleColor)(((int)Console.ForegroundColor & 0x08) | ((int)color & 0x07)); 52Console.ForegroundColor = (ConsoleColor)((int)Console.ForegroundColor ^ 0x08);
Wasm.Performance.ConsoleHost (2)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (2)
41Console.ForegroundColor = (ConsoleColor)(((int)Console.ForegroundColor & 0x08) | ((int)color & 0x07)); 52Console.ForegroundColor = (ConsoleColor)((int)Console.ForegroundColor ^ 0x08);
xunit.console (1)
common\ConsoleHelper.cs (1)
58=> Console.ForegroundColor = c;
70 references to ForegroundColor
ClientSample (3)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (3)
18OriginalForegroundColor = Console.ForegroundColor; 41Console.ForegroundColor = (ConsoleColor)(((int)Console.ForegroundColor & 0x08) | ((int)color & 0x07)); 52Console.ForegroundColor = (ConsoleColor)((int)Console.ForegroundColor ^ 0x08);
dotnet (1)
Commands\Test\MTP\Terminal\SystemConsole.cs (1)
102=> Console.ForegroundColor;
dotnet-dev-certs (4)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (3)
18OriginalForegroundColor = Console.ForegroundColor; 41Console.ForegroundColor = (ConsoleColor)(((int)Console.ForegroundColor & 0x08) | ((int)color & 0x07)); 52Console.ForegroundColor = (ConsoleColor)((int)Console.ForegroundColor ^ 0x08);
src\Tools\Shared\CommandLine\PhysicalConsole.cs (1)
34get => Console.ForegroundColor;
dotnet-getdocument (4)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (3)
18OriginalForegroundColor = Console.ForegroundColor; 41Console.ForegroundColor = (ConsoleColor)(((int)Console.ForegroundColor & 0x08) | ((int)color & 0x07)); 52Console.ForegroundColor = (ConsoleColor)((int)Console.ForegroundColor ^ 0x08);
src\Tools\Shared\CommandLine\PhysicalConsole.cs (1)
34get => Console.ForegroundColor;
dotnet-openapi (4)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (3)
18OriginalForegroundColor = Console.ForegroundColor; 41Console.ForegroundColor = (ConsoleColor)(((int)Console.ForegroundColor & 0x08) | ((int)color & 0x07)); 52Console.ForegroundColor = (ConsoleColor)((int)Console.ForegroundColor ^ 0x08);
src\Tools\Shared\CommandLine\PhysicalConsole.cs (1)
34get => Console.ForegroundColor;
dotnet-sql-cache (4)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (3)
18OriginalForegroundColor = Console.ForegroundColor; 41Console.ForegroundColor = (ConsoleColor)(((int)Console.ForegroundColor & 0x08) | ((int)color & 0x07)); 52Console.ForegroundColor = (ConsoleColor)((int)Console.ForegroundColor ^ 0x08);
src\Tools\Shared\CommandLine\PhysicalConsole.cs (1)
34get => Console.ForegroundColor;
dotnet-svcutil-lib (1)
ToolConsole.cs (1)
138var originalColor = Console.ForegroundColor;
dotnet-user-jwts (4)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (3)
18OriginalForegroundColor = Console.ForegroundColor; 41Console.ForegroundColor = (ConsoleColor)(((int)Console.ForegroundColor & 0x08) | ((int)color & 0x07)); 52Console.ForegroundColor = (ConsoleColor)((int)Console.ForegroundColor ^ 0x08);
src\Tools\Shared\CommandLine\PhysicalConsole.cs (1)
34get => Console.ForegroundColor;
dotnet-user-secrets (4)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (3)
18OriginalForegroundColor = Console.ForegroundColor; 41Console.ForegroundColor = (ConsoleColor)(((int)Console.ForegroundColor & 0x08) | ((int)color & 0x07)); 52Console.ForegroundColor = (ConsoleColor)((int)Console.ForegroundColor ^ 0x08);
src\Tools\Shared\CommandLine\PhysicalConsole.cs (1)
34get => Console.ForegroundColor;
dotnet-watch (1)
UI\PhysicalConsole.cs (1)
106get => Console.ForegroundColor;
GetDocument.Insider (4)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (3)
18OriginalForegroundColor = Console.ForegroundColor; 41Console.ForegroundColor = (ConsoleColor)(((int)Console.ForegroundColor & 0x08) | ((int)color & 0x07)); 52Console.ForegroundColor = (ConsoleColor)((int)Console.ForegroundColor ^ 0x08);
src\Tools\Shared\CommandLine\PhysicalConsole.cs (1)
34get => Console.ForegroundColor;
Microsoft.AspNetCore.Shared.Tests (3)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (3)
18OriginalForegroundColor = Console.ForegroundColor; 41Console.ForegroundColor = (ConsoleColor)(((int)Console.ForegroundColor & 0x08) | ((int)color & 0x07)); 52Console.ForegroundColor = (ConsoleColor)((int)Console.ForegroundColor ^ 0x08);
Microsoft.DotNet.Cli.Utils (2)
AnsiConsole.cs (2)
15OriginalForegroundColor = Console.ForegroundColor; 66SetColor(Console.ForegroundColor);
Microsoft.DotNet.SignCheckLibrary (1)
Logging\ConsoleLogger.cs (1)
40var fgColor = Console.ForegroundColor;
Microsoft.DotNet.VersionTools.Cli (1)
ConsoleLogger.cs (1)
17var fgColor = Console.ForegroundColor;
Microsoft.Win32.Msi.Manual.Tests (3)
Program.cs (3)
190ConsoleColor fg = Console.ForegroundColor; 211ConsoleColor fg = Console.ForegroundColor; 223ConsoleColor fg = Console.ForegroundColor;
RunTests (2)
ConsoleUtil.cs (1)
52var saved = Console.ForegroundColor;
TestRunner.cs (1)
178var color = testResult.Succeeded ? Console.ForegroundColor : ConsoleColor.Red;
rzc (3)
CommandLine\AnsiConsole.cs (3)
15OriginalForegroundColor = Console.ForegroundColor; 38Console.ForegroundColor = (ConsoleColor)(((int)Console.ForegroundColor & 0x08) | ((int)color & 0x07)); 49Console.ForegroundColor = (ConsoleColor)((int)Console.ForegroundColor ^ 0x08);
Swaggatherer (3)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (3)
18OriginalForegroundColor = Console.ForegroundColor; 41Console.ForegroundColor = (ConsoleColor)(((int)Console.ForegroundColor & 0x08) | ((int)color & 0x07)); 52Console.ForegroundColor = (ConsoleColor)((int)Console.ForegroundColor ^ 0x08);
Templates.Blazor.Tests (3)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (3)
18OriginalForegroundColor = Console.ForegroundColor; 41Console.ForegroundColor = (ConsoleColor)(((int)Console.ForegroundColor & 0x08) | ((int)color & 0x07)); 52Console.ForegroundColor = (ConsoleColor)((int)Console.ForegroundColor ^ 0x08);
Templates.Blazor.WebAssembly.Auth.Tests (3)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (3)
18OriginalForegroundColor = Console.ForegroundColor; 41Console.ForegroundColor = (ConsoleColor)(((int)Console.ForegroundColor & 0x08) | ((int)color & 0x07)); 52Console.ForegroundColor = (ConsoleColor)((int)Console.ForegroundColor ^ 0x08);
Templates.Blazor.WebAssembly.Tests (3)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (3)
18OriginalForegroundColor = Console.ForegroundColor; 41Console.ForegroundColor = (ConsoleColor)(((int)Console.ForegroundColor & 0x08) | ((int)color & 0x07)); 52Console.ForegroundColor = (ConsoleColor)((int)Console.ForegroundColor ^ 0x08);
Templates.Mvc.Tests (3)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (3)
18OriginalForegroundColor = Console.ForegroundColor; 41Console.ForegroundColor = (ConsoleColor)(((int)Console.ForegroundColor & 0x08) | ((int)color & 0x07)); 52Console.ForegroundColor = (ConsoleColor)((int)Console.ForegroundColor ^ 0x08);
Templates.Tests (3)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (3)
18OriginalForegroundColor = Console.ForegroundColor; 41Console.ForegroundColor = (ConsoleColor)(((int)Console.ForegroundColor & 0x08) | ((int)color & 0x07)); 52Console.ForegroundColor = (ConsoleColor)((int)Console.ForegroundColor ^ 0x08);
Wasm.Performance.ConsoleHost (3)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (3)
18OriginalForegroundColor = Console.ForegroundColor; 41Console.ForegroundColor = (ConsoleColor)(((int)Console.ForegroundColor & 0x08) | ((int)color & 0x07)); 52Console.ForegroundColor = (ConsoleColor)((int)Console.ForegroundColor ^ 0x08);