59 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-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-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-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;
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.SignCheckLibrary (2)
Logging\ConsoleLogger.cs (2)
40Console.ForegroundColor = ConsoleColor.Red; 42Console.ForegroundColor = fgColor;
Microsoft.DotNet.VersionTools.Cli (2)
ConsoleLogger.cs (2)
18Console.ForegroundColor = ConsoleColor.Red; 20Console.ForegroundColor = fgColor;
Microsoft.Extensions.Logging.Console (1)
AnsiParsingLogConsole.cs (1)
50System.Console.ForegroundColor = foreground.Value;
Microsoft.ML.Core (1)
Environment\ConsoleEnvironment.cs (1)
87Console.ForegroundColor = messageColor;
RunTests (2)
ConsoleUtil.cs (2)
56Console.ForegroundColor = color; 62Console.ForegroundColor = saved;
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;
59 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-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-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;
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.SignCheckLibrary (1)
Logging\ConsoleLogger.cs (1)
39var fgColor = Console.ForegroundColor;
Microsoft.DotNet.VersionTools.Cli (1)
ConsoleLogger.cs (1)
17var fgColor = Console.ForegroundColor;
RunTests (2)
ConsoleUtil.cs (1)
52var saved = Console.ForegroundColor;
TestRunner.cs (1)
428var color = testResult.Succeeded ? Console.ForegroundColor : ConsoleColor.Red;
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);