3012 references to Console
aspire (20)
Commands\PipelineCommandBase.cs (6)
475Console.Write("\a"); 476Console.Out.Flush(); 703Console.Write("\a"); 704Console.Out.Flush(); 933Console.Write("\u001b]9;4;3\u001b\\"); 946Console.Write("\u001b]9;4;0\u001b\\");
Diagnostics\StartupErrorWriter.cs (1)
43Out = new AnsiConsoleOutput(Console.Error)
Program.cs (5)
225builder.AddProvider(new SpectreConsoleLoggerProvider(Console.Error)); 302BuildAnsiConsole(s, Console.Out), 303BuildAnsiConsole(s, Console.Error))); 654Console.CancelKeyPress += (sender, eventArgs) => 660Console.OutputEncoding = Encoding.UTF8;
Utils\AspireAnsiConsoleOutput.cs (7)
29return !Console.IsOutputRedirected; 34return !Console.IsErrorRedirected; 83Console.OutputEncoding = encoding; 91return writer == Console.Out; 103return writer == Console.Error; 115var width = Console.BufferWidth; 144var height = Console.WindowHeight;
Utils\CliHostEnvironment.cs (1)
169_ = Console.CursorVisible;
Aspire.Cli.EndToEnd.Tests (1)
tests\Shared\TemporaryRepo.cs (1)
54Console.WriteLine($"Error disposing TemporaryRepo: {ex.Message}");
Aspire.Cli.Tests (27)
CliSmokeTests.cs (12)
40var oldErrorOutput = Console.Error; 41Console.SetError(errorWriter); 48Console.SetError(oldErrorOutput); 54Console.WriteLine($"Error output: {errorOutput}"); 76var oldErrorOutput = Console.Error; 77Console.SetError(errorWriter); 81Console.SetError(oldErrorOutput); 85Console.WriteLine($"Error output: {errorOutput}"); 101var oldOutput = Console.Out; 102Console.SetOut(outputWriter); 106Console.SetOut(oldOutput); 110Console.WriteLine($"Output: {output}");
Commands\PublishCommandPromptingIntegrationTests.cs (1)
972System.Console.WriteLine($"#{lineNumber} [{messageType}] {message}");
Commands\SdkDumpCommandTests.cs (2)
226Console.WriteLine($"Warnings: {warningLines.Length}"); 229Console.WriteLine(warningLine);
tests\Shared\TemporaryRepo.cs (1)
54Console.WriteLine($"Error disposing TemporaryRepo: {ex.Message}");
Utils\AspireAnsiConsoleOutputTests.cs (11)
22var output = new AspireAnsiConsoleOutput(Console.Out, configuration); 42var output = new AspireAnsiConsoleOutput(Console.Out, configuration); 62var output = new AspireAnsiConsoleOutput(Console.Out, configuration); 83var output = new AspireAnsiConsoleOutput(Console.Out, configuration); 104var output = new AspireAnsiConsoleOutput(Console.Out, configuration); 119var output = new AspireAnsiConsoleOutput(Console.Out, configuration); 134var output = new AspireAnsiConsoleOutput(Console.Out, configuration); 151var output = new AspireAnsiConsoleOutput(Console.Out, configuration); 167var output = new AspireAnsiConsoleOutput(Console.Out, configuration); 181var writer = Console.Out; 205Assert.Throws<ArgumentNullException>(() => new AspireAnsiConsoleOutput(Console.Out, null!));
Aspire.Dashboard.Tests (2)
tests\Shared\Playwright\PlaywrightProvider.cs (2)
59Console.WriteLine($"** Found playwright dependencies in {probePath}"); 63Console.WriteLine($"** Did not find playwright dependencies in {probePath}");
Aspire.Deployment.EndToEnd.Tests (11)
Helpers\DeploymentReporter.cs (10)
26Console.WriteLine($"✅ Deployment succeeded: {testName}"); 27Console.WriteLine($" Duration: {duration}"); 28Console.WriteLine($" Resource Group: {resourceGroupName}"); 31Console.WriteLine($" {name}: {url}"); 77Console.WriteLine($"❌ Deployment failed: {testName}"); 78Console.WriteLine($" Resource Group: {resourceGroupName}"); 79Console.WriteLine($" Error: {errorMessage}"); 82Console.WriteLine($" Logs: {logs}"); 134Console.WriteLine($"🧹 Cleanup completed: {resourceGroupName}"); 138Console.WriteLine($"⚠️ Cleanup failed: {resourceGroupName} - {errorMessage}");
tests\Shared\TemporaryRepo.cs (1)
54Console.WriteLine($"Error disposing TemporaryRepo: {ex.Message}");
Aspire.EndToEnd.Tests (16)
tests\Shared\Playwright\PlaywrightProvider.cs (2)
59Console.WriteLine($"** Found playwright dependencies in {probePath}"); 63Console.WriteLine($"** Did not find playwright dependencies in {probePath}");
tests\Shared\TemplatesTesting\AspireProject.cs (1)
537Console.WriteLine(msg);
tests\Shared\TemplatesTesting\BuildEnvironment.cs (6)
206Console.WriteLine($"*** Using path for projects: {TestRootPath}"); 210Console.WriteLine($"*** Using Sdk path: {sdkForTemplatePath}"); 215Console.WriteLine($"*** Using NuGet cache: {NuGetPackagesPath}"); 230Console.WriteLine($"*** Using NuGet cache (never deleted automatically): {NuGetPackagesPath}"); 252Console.WriteLine($"\tFailed to delete {TestRootPath} . Deleting subdirectories."); 262Console.WriteLine($"\tFailed to delete {dir} : {ioex.Message}. Ignoring.");
tests\Shared\TemplatesTesting\TemplateCustomHive.cs (3)
40Console.WriteLine($"** Custom hive exists, skipping installation: {_customHiveDirectory}"); 60Console.WriteLine($"** Custom hive exists, skipping installation: {_customHiveDirectory}"); 69Console.WriteLine($"*** Creating templates custom hive: {_customHiveDirectory}");
tests\Shared\TemplatesTesting\TestOutputWrapper.cs (4)
21Console.Write(message); 31Console.Write(format, args); 42Console.WriteLine(message); 52Console.WriteLine(format, args);
Aspire.Hosting (5)
Dcp\DcpHost.cs (2)
261OnOutputData = Console.Out.Write, 262OnErrorData = Console.Error.Write,
DistributedApplication.cs (3)
259Console.WriteLine($"AppHost PID: {Environment.ProcessId}"); 263Console.WriteLine($"Waiting for debugger to attach to process: {Environment.ProcessId}"); 267Console.WriteLine($"Timeout waiting for debugger to attach to process: {Environment.ProcessId}");
Aspire.Hosting.Foundry (1)
HostedAgent\HostedAgentBuilderExtension.cs (1)
215Console.Error.Write($"Error processing agent response: {ex}");
Aspire.RuntimeIdentifier.Tool (2)
Program.cs (2)
64Console.WriteLine("Unable to find the best rid to use"); 68Console.WriteLine(bestRidForPlatform);
Aspire.Templates.Tests (16)
tests\Shared\Playwright\PlaywrightProvider.cs (2)
59Console.WriteLine($"** Found playwright dependencies in {probePath}"); 63Console.WriteLine($"** Did not find playwright dependencies in {probePath}");
tests\Shared\TemplatesTesting\AspireProject.cs (1)
537Console.WriteLine(msg);
tests\Shared\TemplatesTesting\BuildEnvironment.cs (6)
206Console.WriteLine($"*** Using path for projects: {TestRootPath}"); 210Console.WriteLine($"*** Using Sdk path: {sdkForTemplatePath}"); 215Console.WriteLine($"*** Using NuGet cache: {NuGetPackagesPath}"); 230Console.WriteLine($"*** Using NuGet cache (never deleted automatically): {NuGetPackagesPath}"); 252Console.WriteLine($"\tFailed to delete {TestRootPath} . Deleting subdirectories."); 262Console.WriteLine($"\tFailed to delete {dir} : {ioex.Message}. Ignoring.");
tests\Shared\TemplatesTesting\TemplateCustomHive.cs (3)
40Console.WriteLine($"** Custom hive exists, skipping installation: {_customHiveDirectory}"); 60Console.WriteLine($"** Custom hive exists, skipping installation: {_customHiveDirectory}"); 69Console.WriteLine($"*** Creating templates custom hive: {_customHiveDirectory}");
tests\Shared\TemplatesTesting\TestOutputWrapper.cs (4)
21Console.Write(message); 31Console.Write(format, args); 42Console.WriteLine(message); 52Console.WriteLine(format, args);
aspire-managed (51)
NuGet\Commands\LayoutCommand.cs (15)
71Console.Error.WriteLine($"Error: Assets file not found: {assetsPath}"); 83Console.Error.WriteLine("Error: Failed to parse project.assets.json"); 94Console.Error.WriteLine($"Error: Target framework '{framework}' not found in assets file"); 95Console.Error.WriteLine($"Available targets: {string.Join(", ", lockFile.Targets.Select(t => t.TargetFramework.GetShortFolderName()))}"); 116Console.WriteLine($"Using packages path: {packagesPath}"); 117Console.WriteLine($"Target framework: {target.TargetFramework.GetShortFolderName()}"); 118Console.WriteLine(string.Format(CultureInfo.InvariantCulture, "Libraries: {0}", target.Libraries.Count)); 138Console.WriteLine($" Skip (not found): {libraryName}/{libraryVersion} at {packagePath}"); 174Console.WriteLine($" Copy: {sourcePath} -> {destPath}"); 191Console.WriteLine($" Copy (xml): {xmlSourcePath} -> {xmlDestPath}"); 219Console.WriteLine($" Copy (native): {sourcePath} -> {destPath}"); 225Console.WriteLine(string.Format(CultureInfo.InvariantCulture, "Layout created: {0} files copied to {1}", copiedCount, outputPath)); 228Console.WriteLine(string.Format(CultureInfo.InvariantCulture, " ({0} packages skipped - not found in cache)", skippedCount)); 235Console.Error.WriteLine($"Error: {ex.Message}"); 238Console.Error.WriteLine(ex.StackTrace);
NuGet\Commands\RestoreCommand.cs (22)
106Console.Error.WriteLine("Error: Cannot specify both --nuget-config and --source. Use one or the other."); 116Console.WriteLine($"Parsing package argument: {pkgArg}"); 121Console.Error.WriteLine($"Error: Package argument '{pkgArg}' must be in format 'PackageId,Version'"); 159Console.WriteLine(string.Format(CultureInfo.InvariantCulture, "Restoring {0} packages for {1}", packages.Length, framework)); 160Console.WriteLine($"Output: {outputPath}"); 161Console.WriteLine($"Packages: {packagesDir}"); 164Console.WriteLine($"Working dir: {workingDir}"); 168Console.WriteLine($"NuGet config: {nugetConfigPath}"); 204Console.WriteLine("Running restore..."); 212Console.Error.WriteLine("Error: Restore returned no results"); 220Console.Error.WriteLine($"Error: Restore failed: {errors}"); 225Console.WriteLine($"Restore completed successfully"); 226Console.WriteLine($"Assets file: {assetsPath}"); 231Console.Error.WriteLine($"Error: {ex.Message}"); 234Console.Error.WriteLine(ex.ToString()); 280Console.WriteLine($"Discovering NuGet config from: {workingDir}"); 283Console.WriteLine($" Loaded config: {configPath}"); 293Console.WriteLine($" Discovered source: {source.Name ?? source.Source}"); 303Console.WriteLine($"Warning: Failed to load NuGet config from {workingDir}: {ex.ToString()}"); 314Console.WriteLine("Note: Adding nuget.org as fallback package source. Use --no-nuget-org to disable."); 321Console.WriteLine(string.Format(CultureInfo.InvariantCulture, "Using {0} package sources:", packageSources.Count)); 324Console.WriteLine($" - {source.Name ?? source.Source}");
NuGet\Commands\SearchCommand.cs (12)
127Console.Error.WriteLine(string.Format(CultureInfo.InvariantCulture, "Searching {0} source(s) for '{1}'", packageSources.Count, query)); 138Console.Error.WriteLine($"Searching {source.Name} ({source.Source})..."); 145Console.Error.WriteLine($"Warning: Failed to search {source.Name}: {ex.Message}"); 169Console.Error.WriteLine($"Error: {ex.Message}"); 172Console.Error.WriteLine(ex.StackTrace); 202Console.Error.WriteLine($"Using explicit source: {source}"); 217Console.Error.WriteLine($"Using source from config: {source.Name} ({source.Source})"); 228Console.Error.WriteLine("Note: No package sources configured, using nuget.org as fallback."); 288Console.WriteLine(JsonSerializer.Serialize(result, SearchJsonContext.Default.SearchResult)); 294Console.WriteLine($"{pkg.Id} {pkg.Version}"); 297Console.WriteLine($" {pkg.Description}"); 300Console.WriteLine();
NuGet\NuGetLogger.cs (1)
30Console.Error.WriteLine($"{prefix}{data}");
Program.cs (1)
45Console.Error.WriteLine($"Usage: {AppDomain.CurrentDomain.FriendlyName} <dashboard|server|nuget> [args...]");
cdac-build-tool (28)
ComposeCommand.cs (7)
33Console.Error.WriteLine("No input files specified"); 39Console.Error.WriteLine("No output file specified"); 45Console.Error.WriteLine("No baseline path specified"); 51Console.Error.WriteLine($"Baseline path {baselinesDir} does not exist"); 57Console.Error.WriteLine("No template file specified"); 63Console.Error.WriteLine($"Template file {templateFilePath} does not exist"); 74Console.Error.WriteLine($"could not scrape payload in {input}");
DataDescriptorModel.cs (16)
45Console.WriteLine("\nData Descriptor Model:"); 46Console.WriteLine($"Platform Flags: 0x{PlatformFlags:x8}"); 47Console.WriteLine($"Baseline: {Baseline}"); 50Console.WriteLine($"Type: {typeName}"); 53Console.WriteLine($" Size: 0x{type.Size:x8}"); 57Console.WriteLine($" Field: {fieldName}"); 58Console.WriteLine($" Type: {field.Type}"); 59Console.WriteLine($" Offset: 0x{field.Offset:x8}"); 64Console.WriteLine($"Global: {globalName}"); 65Console.WriteLine($" Type: {global.Type}"); 66Console.WriteLine($" Value: {global.Value}"); 70Console.WriteLine($"Sub-Descriptor: {subDescriptorName}"); 71Console.WriteLine($" Type: {subDescriptor.Type}"); 72Console.WriteLine($" Value: {subDescriptor.Value}"); 76Console.WriteLine($"Contract: {contractName}"); 77Console.WriteLine($" Version: {contract}");
ObjectFileScraper.cs (5)
38Console.WriteLine($"Magic starts at 0x{state.MagicStart:x8} in {inputPath}"); 49Console.WriteLine($"\nFinished scraping content from {inputPath}"); 189Console.WriteLine($""" 438Console.WriteLine(msg); 656Console.WriteLine(msg);
CodeStyleConfigFileGenerator (9)
Program.cs (1)
33Console.Error.WriteLine($"Excepted {ExpectedArguments} arguments, found {args.Length}: {string.Join(';', args)}");
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (8)
65Console.WriteLine("Dumping info before call to failfast"); 68Console.WriteLine(message); 73Console.WriteLine("Exception info"); 76Console.WriteLine(current.Message); 77Console.WriteLine(current.StackTrace); 81Console.WriteLine("Stack trace of handler"); 83Console.WriteLine(stackTrace.ToString()); 85Console.Out.Flush();
ConfigurationSchemaGenerator.Tests (1)
GeneratorTests.cs (1)
696MetadataReference.CreateFromFile(typeof(Console).Assembly.Location)
crossgen2 (40)
Crossgen2RootCommand.cs (29)
301Console.WriteLine(SR.OptionPassingHelp); 302Console.WriteLine(); 303Console.WriteLine(SR.DashDashHelp); 304Console.WriteLine(); 306Console.WriteLine(String.Format(SR.SwitchWithDefaultHelp, "--targetos", String.Join("', '", Helpers.ValidOS), Helpers.GetTargetOS(null).ToString().ToLowerInvariant())); 307Console.WriteLine(); 308Console.WriteLine(String.Format(SR.SwitchWithDefaultHelp, "--targetarch", String.Join("', '", Helpers.ValidArchitectures), Helpers.GetTargetArchitecture(null).ToString().ToLowerInvariant())); 309Console.WriteLine(); 312Console.WriteLine(String.Format(SR.SwitchWithDefaultHelp, "--obj-format", String.Join("', '", ValidObjFormats), "pe")); 313Console.WriteLine(); 315Console.WriteLine(String.Format(SR.SwitchWithDefaultHelp, "--type-validation", String.Join("', '", Enum.GetNames<TypeValidationRule>()), nameof(TypeValidationRule.Automatic))); 316Console.WriteLine(); 318Console.WriteLine(SR.CrossModuleInliningExtraHelp); 319Console.WriteLine(); 320Console.WriteLine(String.Format(SR.LayoutOptionExtraHelp, "--method-layout", String.Join("', '", Enum.GetNames<MethodLayoutAlgorithm>()))); 321Console.WriteLine(); 322Console.WriteLine(String.Format(SR.LayoutOptionExtraHelp, "--file-layout", String.Join("', '", Enum.GetNames<FileLayoutAlgorithm>()))); 323Console.WriteLine(); 325Console.WriteLine(SR.InstructionSetHelp); 337Console.Write(arch); 338Console.Write(": "); 343Console.Write(", "); 345Console.Write(instructionSet.Name); 351Console.WriteLine(); 354Console.WriteLine(); 355Console.WriteLine(SR.CpuFamilies); 356Console.WriteLine(string.Join(", ", Internal.JitInterface.InstructionSetFlags.AllCpuNames)); 424Console.WriteLine(SR.DumpReproInstructions); 427Console.WriteLine(Program.CreateReproArgumentString(failingMethod));
Program.cs (9)
53Console.WriteLine("Waiting for debugger to attach. Press ENTER to continue"); 54Console.ReadLine(); 77var logger = new Logger(Console.Out, Get(_command.IsVerbose)); 176Console.WriteLine(SR.IgnoringCompositeImage, inputFile.Value); 224Console.WriteLine(SR.InputWasNotLoadable); 307Console.WriteLine($@"Moving R2R PE file: {tmpOutFile} to {outFile}"); 781Console.WriteLine($"{curIndex} - {searchMethod}"); 837Console.WriteLine(SR.DumpReproInstructions); 840Console.WriteLine(CreateReproArgumentString(failingMethod));
src\runtime\src\coreclr\tools\Common\CommandLineHelpers.cs (2)
221Console.WriteLine($"Creating {zipFileName}"); 411Console.WriteLine("Warning: No files matching " + pattern);
csc (8)
src\roslyn\src\Compilers\CSharp\csc\Program.cs (1)
24Console.WriteLine(e.Message);
src\roslyn\src\Compilers\Shared\BuildClient.cs (1)
124textWriter = textWriter ?? Console.Out;
src\roslyn\src\Compilers\Shared\ConsoleUtil.cs (6)
17/// This will update the <see cref="Console.Out"/> value to have UTF-8 encoding for the duration of the 22Encoding savedEncoding = Console.OutputEncoding; 25Console.OutputEncoding = s_utf8Encoding; 26return func(Console.Out); 32Console.OutputEncoding = savedEncoding; 45if (textWriter != Console.Out)
CSharpSyntaxGenerator (8)
Program.cs (8)
74Console.WriteLine(inputFile + " not found."); 85Console.WriteLine("Invalid usage:"); 87Console.WriteLine(programName + " input-file output-file [/test | /grammar]"); 88Console.WriteLine(programName + " input-file /sig"); 111Console.WriteLine("Generating grammar failed."); 112Console.WriteLine(ex); 136SignatureWriter.Write(Console.Out, tree); 182Console.WriteLine("Unable to access {0}. Is it checked out?", outputFile);
csi (1)
Csi.cs (1)
48Console.Error.WriteLine(ex.ToString());
DnnAnalyzer (2)
DnnAnalyzer.cs (2)
18Console.Error.WriteLine("Usage: dotnet DnnAnalyzer.dll <model_location>"); 25Console.WriteLine($"Graph node: '{name}', operation type: '{opType}', output type: '{type}'{inputsString}");
dotnet (66)
AutomaticEncodingRestorer.cs (4)
29_originalOutputEncoding = Console.OutputEncoding; 33_originalInputEncoding = Console.InputEncoding; 50Console.OutputEncoding = _originalOutputEncoding; 54Console.InputEncoding = _originalInputEncoding;
CommandFactory\CommandResolution\ProjectToolsCommandResolver.cs (6)
409var savedOutWriter = Console.Out; 410var savedErrWriter = Console.Error; 413Console.SetOut(outWriter); 414Console.SetError(errWriter); 423Console.SetOut(savedOutWriter); 424Console.SetError(savedErrWriter);
Commands\Hidden\Parse\ParseCommand.cs (9)
20Console.WriteLine(reparsed.ToString()); 24Console.WriteLine("Unmatched Tokens: "); 25Console.WriteLine(string.Join(" ", reparsed.UnmatchedTokens)); 32Console.WriteLine("Option values to be forwarded: "); 33Console.WriteLine(string.Join(" ", optionValuesToBeForwarded)); 37Console.WriteLine(); 38Console.WriteLine("ERRORS"); 39Console.WriteLine(); 42Console.WriteLine(error?.Message);
Commands\MSBuild\MSBuildForwardingApp.cs (1)
128Console.CancelKeyPress += (sender, e) => { e.Cancel = true; };
Commands\Pack\PackCommand.cs (1)
98Console.Error.WriteLine(CliStrings.PackCmd_OneNuspecAllowed);
Commands\Package\List\PackageListCommand.cs (1)
108Console.WriteLine(jsonError);
Commands\Run\Api\RunApiCommand.cs (2)
24for (string? line; (line = Console.ReadLine()) != null;) 48Console.WriteLine(json);
Commands\Run\RunCommand.cs (2)
221Console.CancelKeyPress += (sender, e) => { e.Cancel = true; }; 920using (var stdinStream = Console.OpenStandardInput())
Commands\Run\VirtualProjectBuildingCommand.cs (2)
591Console.WriteLine(result); 601? Console.OpenStandardOutput()
Commands\Test\MTP\CtrlCCancellationManager.cs (2)
46Console.CancelKeyPress += OnConsoleCancelKeyPress; 170Console.CancelKeyPress -= OnConsoleCancelKeyPress;
Commands\Test\MTP\Logger.cs (1)
110Console.WriteLine($"[dotnet test - {DateTimeOffset.UtcNow:MM/dd/yyyy HH:mm:ss.fff}]{ex}");
Commands\Test\MTP\MicrosoftTestingPlatformTestCommand.cs (1)
186bool isInteractive = !Console.IsOutputRedirected && !new Telemetry.CIEnvironmentDetectorForTelemetry().IsCIEnvironment();
Commands\Test\MTP\MicrosoftTestingPlatformTestCommand.Help.cs (1)
23Console.WriteLine(CliCommandStrings.HelpWaitingForOptionsAndExtensions);
Commands\Test\MTP\SolutionAndProjectUtility.cs (1)
369bool isInteractive = !Console.IsOutputRedirected && !new Telemetry.CIEnvironmentDetectorForTelemetry().IsCIEnvironment();
Commands\Test\MTP\Terminal\NativeMethods.cs (1)
30if (Console.IsOutputRedirected)
Commands\Test\MTP\Terminal\SimpleTerminalBase.cs (1)
178_batchingLock = System.Console.Out;
Commands\Test\MTP\Terminal\SystemConsole.cs (12)
14public int BufferHeight => Console.BufferHeight; 19public int BufferWidth => Console.BufferWidth; 24public bool IsOutputRedirected => Console.IsOutputRedirected; 29stream: Console.OpenStandardOutput(), 30encoding: Console.Out.Encoding, 41add => Console.CancelKeyPress += value; 42remove => Console.CancelKeyPress -= value; 96=> Console.ForegroundColor = color; 99=> Console.BackgroundColor = color; 102=> Console.ForegroundColor; 105=> Console.BackgroundColor; 107public void Clear() => Console.Clear();
Commands\Test\MTP\Terminal\TestProgressStateAwareTerminal.cs (1)
19private readonly object _lock = Console.Out;
Commands\Test\VSTest\TestCommand.cs (1)
591if (Console.IsOutputRedirected)
Commands\Test\VSTest\VSTestTrace.cs (3)
19Console.WriteLine($"[dotnet test - {DateTime.UtcNow}]Logging to {(!string.IsNullOrEmpty(s_traceFilePath) ? s_traceFilePath : "console")}"); 43Console.WriteLine(message); 48Console.WriteLine($"[dotnet test - {DateTimeOffset.UtcNow}]{ex}");
Commands\Workload\Install\WorkloadManifestUpdater.cs (2)
180Console.WriteLine(); 181Console.WriteLine(CliCommandStrings.WorkloadInstallWorkloadUpdatesAvailable);
InteractiveConsole.cs (4)
34Console.Write(AddPromptOptions(message)); 38var key = Console.ReadKey(); 39Console.WriteLine(); 51Console.Write(AddPromptOptions(string.Format(CliCommandStrings.ConfirmationPromptInvalidChoiceMessage, CliCommandStrings.ConfirmationPromptYesValue, CliCommandStrings.ConfirmationPromptNoValue)));
NuGetForwardingApp.cs (1)
26Console.CancelKeyPress += (sender, e) => { e.Cancel = true; };
Parser.cs (2)
342windowWidth = Console.WindowWidth; 383Console.Out.WriteLine(CliUsage.HelpText);
Program.cs (1)
105Console.OutputEncoding = Encoding.UTF8;
src\sdk\artifacts\.packages\microsoft.codeanalysis.buildclient\5.9.0-1.26317.109\contentFiles\cs\net11.0\Debug.cs (2)
64Console.WriteLine(message); 65Console.WriteLine(stackTrace);
Telemetry\TelemetryCommonProperties.cs (1)
62{ OutputRedirected, Console.IsOutputRedirected.ToString() },
dotnet-dev-certs (24)
Program.cs (2)
53Console.WriteLine("Press any key to continue..."); 54_ = Console.ReadKey();
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (7)
18OriginalForegroundColor = Console.ForegroundColor; 27return new AnsiConsole(Console.Out, useConsoleColor); 32return new AnsiConsole(Console.Error, useConsoleColor); 41Console.ForegroundColor = (ConsoleColor)(((int)Console.ForegroundColor & 0x08) | ((int)color & 0x07)); 52Console.ForegroundColor = (ConsoleColor)((int)Console.ForegroundColor ^ 0x08);
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (2)
64public TextWriter Out { get; set; } = Console.Out; 65public TextWriter Error { get; set; } = Console.Error;
src\aspnetcore\src\Tools\Shared\CommandLine\DebugHelper.cs (3)
22Console.WriteLine("Waiting for debugger to attach. Press ENTER to continue"); 24Console.WriteLine($"Process ID: {Environment.ProcessId}"); 28Console.ReadLine();
src\aspnetcore\src\Tools\Shared\CommandLine\PhysicalConsole.cs (10)
17Console.CancelKeyPress += (o, e) => 26public TextWriter Error => Console.Error; 27public TextReader In => Console.In; 28public TextWriter Out => Console.Out; 29public bool IsInputRedirected => Console.IsInputRedirected; 30public bool IsOutputRedirected => Console.IsOutputRedirected; 31public bool IsErrorRedirected => Console.IsErrorRedirected; 34get => Console.ForegroundColor; 35set => Console.ForegroundColor = value; 38public void ResetColor() => Console.ResetColor();
dotnet-format (11)
Commands\FormatCommandCommon.cs (6)
254if (!Console.IsInputRedirected) 263Console.InputEncoding = Encoding.UTF8; 264using var reader = new StreamReader(Console.OpenStandardInput(8192)); 265Console.SetIn(reader); 267for (var i = 0; Console.In.Peek() != -1; ++i) 269var line = Console.In.ReadLine();
Logging\SimpleConsoleLogger.cs (5)
13&& !Console.IsOutputRedirected; 67Console.ForegroundColor = LogLevelColorMap[logLevel]; 72Console.Error.WriteLine(message); 76Console.Out.WriteLine(message); 81Console.ResetColor();
dotnet-getdocument (23)
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (7)
18OriginalForegroundColor = Console.ForegroundColor; 27return new AnsiConsole(Console.Out, useConsoleColor); 32return new AnsiConsole(Console.Error, useConsoleColor); 41Console.ForegroundColor = (ConsoleColor)(((int)Console.ForegroundColor & 0x08) | ((int)color & 0x07)); 52Console.ForegroundColor = (ConsoleColor)((int)Console.ForegroundColor ^ 0x08);
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (2)
64public TextWriter Out { get; set; } = Console.Out; 65public TextWriter Error { get; set; } = Console.Error;
src\aspnetcore\src\Tools\GetDocumentInsider\src\ProgramBase.cs (1)
28Console.OutputEncoding = Encoding.UTF8;
src\aspnetcore\src\Tools\Shared\CommandLine\DebugHelper.cs (3)
22Console.WriteLine("Waiting for debugger to attach. Press ENTER to continue"); 24Console.WriteLine($"Process ID: {Environment.ProcessId}"); 28Console.ReadLine();
src\aspnetcore\src\Tools\Shared\CommandLine\PhysicalConsole.cs (10)
17Console.CancelKeyPress += (o, e) => 26public TextWriter Error => Console.Error; 27public TextReader In => Console.In; 28public TextWriter Out => Console.Out; 29public bool IsInputRedirected => Console.IsInputRedirected; 30public bool IsOutputRedirected => Console.IsOutputRedirected; 31public bool IsErrorRedirected => Console.IsErrorRedirected; 34get => Console.ForegroundColor; 35set => Console.ForegroundColor = value; 38public void ResetColor() => Console.ResetColor();
dotnet-Microsoft.XmlSerializer.Generator (26)
Sgen.cs (26)
180Console.Error.WriteLine(FormatMessage(parsableErrors, true, SR.Format(SR.Warning, err))); 188Console.Error.WriteLine(FormatMessage(parsableErrors, false, SR.Format(SR.ErrMissingRequiredArgument, SR.Format(SR.ErrAssembly, "assembly")))); 197Console.WriteLine("This tool is not intended to be used directly."); 198Console.WriteLine("Please refer to https://go.microsoft.com/fwlink/?linkid=858594 on how to use it."); 257Console.Error.WriteLine(FormatMessage(parsableerrors, false, SR.Format(SR.ErrorDetails, SR.Format(SR.ErrLoadType, typeName, assemblyName)))); 278Console.WriteLine(SR.Format(SR.ImportInfo, type.Name, i + 1, types.Length)); 303Console.Out.WriteLine(FormatMessage(parsableerrors, true, SR.Format(SR.InfoIgnoreType, type.FullName))); 375Console.Error.WriteLine(FormatMessage(parsableerrors: false, warning: false, message: SR.GenerateSerializerNotFound)); 407Console.Out.WriteLine(SR.Format(SR.InfoFileName, codePath)); 408Console.Out.WriteLine(SR.Format(SR.InfoGeneratedFile, assembly.Location, codePath)); 413Console.Out.WriteLine(FormatMessage(parsableerrors, false, SR.Format(SR.ErrGenerationFailed, assembly.Location))); 418Console.Out.WriteLine(FormatMessage(parsableerrors, true, SR.Format(SR.InfoNoSerializableTypes, assembly.Location))); 462Console.Out.WriteLine(FormatMessage(parsableerrors, true, SR.Format(SR.InfoIgnoreType, type.FullName))); 492Console.WriteLine($".NET Xml Serialization Generation Utility, Version {ThisAssembly.InformationalVersion}]"); 497Console.Out.WriteLine(SR.HelpDescription); 498Console.Out.WriteLine(SR.Format(SR.HelpUsage, this.GetType().Assembly.GetName().Name.Substring("dotnet-".Length))); 499Console.Out.WriteLine(SR.HelpDevOptions); 500Console.Out.WriteLine(SR.Format(SR.HelpAssembly, "-a", "--assembly")); 501Console.Out.WriteLine(SR.Format(SR.HelpType, "--type")); 502Console.Out.WriteLine(SR.Format(SR.HelpProxy, "--proxytypes")); 503Console.Out.WriteLine(SR.Format(SR.HelpForce, "--force")); 504Console.Out.WriteLine(SR.Format(SR.HelpOut, "-o", "--out")); 506Console.Out.WriteLine(SR.HelpMiscOptions); 507Console.Out.WriteLine(SR.Format(SR.HelpHelp, "-h", "--help")); 527Console.Error.WriteLine(FormatMessage(parsableerrors, false, e.Message)); 536Console.Out.WriteLine(FormatMessage(parsableerrors, true, e.Message));
dotnet-openapi (25)
DebugMode.cs (1)
19Console.WriteLine("Waiting for debugger in pid: {0}", Environment.ProcessId);
Program.cs (2)
46Console.WriteLine(output); 47Console.Error.WriteLine(error);
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (7)
18OriginalForegroundColor = Console.ForegroundColor; 27return new AnsiConsole(Console.Out, useConsoleColor); 32return new AnsiConsole(Console.Error, useConsoleColor); 41Console.ForegroundColor = (ConsoleColor)(((int)Console.ForegroundColor & 0x08) | ((int)color & 0x07)); 52Console.ForegroundColor = (ConsoleColor)((int)Console.ForegroundColor ^ 0x08);
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (2)
64public TextWriter Out { get; set; } = Console.Out; 65public TextWriter Error { get; set; } = Console.Error;
src\aspnetcore\src\Tools\Shared\CommandLine\DebugHelper.cs (3)
22Console.WriteLine("Waiting for debugger to attach. Press ENTER to continue"); 24Console.WriteLine($"Process ID: {Environment.ProcessId}"); 28Console.ReadLine();
src\aspnetcore\src\Tools\Shared\CommandLine\PhysicalConsole.cs (10)
17Console.CancelKeyPress += (o, e) => 26public TextWriter Error => Console.Error; 27public TextReader In => Console.In; 28public TextWriter Out => Console.Out; 29public bool IsInputRedirected => Console.IsInputRedirected; 30public bool IsOutputRedirected => Console.IsOutputRedirected; 31public bool IsErrorRedirected => Console.IsErrorRedirected; 34get => Console.ForegroundColor; 35set => Console.ForegroundColor = value; 38public void ResetColor() => Console.ResetColor();
dotnet-razorpagegenerator (12)
Program.cs (12)
20Console.WriteLine("Invalid argument(s)."); 21Console.WriteLine(@"Usage: 47Console.WriteLine(); 48Console.WriteLine($"{results.Count} files successfully generated."); 49Console.WriteLine(); 97Console.WriteLine(); 98Console.WriteLine(" Generating code files for views in {0}", viewDir); 104Console.WriteLine(" No .cshtml or .razor files were found."); 110Console.WriteLine(" Generating code file for view {0}...", item.FileName); 112Console.WriteLine(" Done!"); 131Console.WriteLine($"One or more parse errors encountered. This will not prevent the generator from continuing: {Environment.NewLine}{diagnostics}."); 213Console.WriteLine(" Inlining file {0}", includeFileName);
dotnet-sql-cache (22)
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (7)
18OriginalForegroundColor = Console.ForegroundColor; 27return new AnsiConsole(Console.Out, useConsoleColor); 32return new AnsiConsole(Console.Error, useConsoleColor); 41Console.ForegroundColor = (ConsoleColor)(((int)Console.ForegroundColor & 0x08) | ((int)color & 0x07)); 52Console.ForegroundColor = (ConsoleColor)((int)Console.ForegroundColor ^ 0x08);
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (2)
64public TextWriter Out { get; set; } = Console.Out; 65public TextWriter Error { get; set; } = Console.Error;
src\aspnetcore\src\Tools\Shared\CommandLine\DebugHelper.cs (3)
22Console.WriteLine("Waiting for debugger to attach. Press ENTER to continue"); 24Console.WriteLine($"Process ID: {Environment.ProcessId}"); 28Console.ReadLine();
src\aspnetcore\src\Tools\Shared\CommandLine\PhysicalConsole.cs (10)
17Console.CancelKeyPress += (o, e) => 26public TextWriter Error => Console.Error; 27public TextReader In => Console.In; 28public TextWriter Out => Console.Out; 29public bool IsInputRedirected => Console.IsInputRedirected; 30public bool IsOutputRedirected => Console.IsOutputRedirected; 31public bool IsErrorRedirected => Console.IsErrorRedirected; 34get => Console.ForegroundColor; 35set => Console.ForegroundColor = value; 38public void ResetColor() => Console.ResetColor();
dotnet-svcutil.xmlserializer (16)
Microsoft\Tools\ServiceModel\SvcUtil\Tool.cs (2)
99if ((System.Console.OutputEncoding.CodePage != Encoding.UTF8.CodePage) && 100(System.Console.OutputEncoding.CodePage != Thread.CurrentThread.CurrentUICulture.TextInfo.OEMCodePage))
Microsoft\Tools\ServiceModel\SvcUtil\ToolConsole.cs (14)
38Console.WriteLine(str); 43Console.WriteLine(); 83Console.Error.Write(SR.Format(SR.Warning)); 84Console.Error.WriteLine(message); 85Console.Error.WriteLine(); 90Console.Error.Write(prefix); 91Console.Error.WriteLine(errMsg); 92Console.Error.WriteLine(); 347bool junk = Console.CursorVisible; 349if (Console.WindowWidth > 75) 350s_nameMidpoint = Console.WindowWidth / 3; 619return Console.CursorLeft; 632bool junk = Console.CursorVisible; 634return Console.BufferWidth;
dotnet-svcutil-lib (36)
CmdCredentialsProvider.cs (16)
31Console.WriteLine(); 36Console.WriteLine(); 47Console.WriteLine(); 48Console.WriteLine(SR.WrnUserBasicCredentialsInClearText); 143Console.WriteLine(string.Format(CultureInfo.InvariantCulture, SR.CertificateSelectionMessageFormat, serviceUri.Authority)); 158Console.WriteLine(FormatCertificate(cert, certId)); 167Console.WriteLine(); 227Console.WriteLine(string.Format(CultureInfo.InvariantCulture, SR.ErrServerCertFailedValidationFormat, sslPolicyErrors, FormatCertificate(cert))); 259Console.WriteLine(SR.EnterOrEscapeMessage); 260keyInfo = Console.ReadKey(intercept: true); 264Console.WriteLine(); 278Console.Write(prompt); 282keyInfo = System.Console.ReadKey(intercept: true); 285Console.WriteLine(); 290Console.Write("\b \b"); 296System.Console.Write(isPassword ? '*' : keyInfo.KeyChar);
HelpGenerator.cs (5)
197if (Console.WindowWidth > 75) 198s_nameMidpoint = Console.WindowWidth / 3; 442return Console.CursorLeft; 454int bufferWidth = Console.BufferWidth; 458return Console.BufferWidth;
Shared\Utilities\DebugUtils.cs (3)
43Console.WriteLine("Waiting for debugger to attach. Press ENTER to continue"); 44Console.WriteLine("Process ID: {0}, Name:{1}", process.Id, process.ProcessName); 45Console.ReadLine();
Shared\Utilities\ProcessRunner.cs (2)
114Console.WriteLine($"Starting process in the background: {Path.GetFileName(proc.ProcessName)}, ID: {proc.Id}."); 115Console.WriteLine($"{Path.GetFileName(currentDir)}>{processName} {processArgs}{Environment.NewLine}");
Tool.cs (2)
429Console.InputEncoding = Encoding.UTF8; 430Console.OutputEncoding = Encoding.UTF8;
ToolConsole.cs (8)
138var originalColor = Console.ForegroundColor; 141Console.ForegroundColor = ConsoleColor.Yellow; 142Console.WriteLine(str); 143Console.ForegroundColor = originalColor; 147Console.ForegroundColor = ConsoleColor.Red; 148Console.WriteLine(str); 149Console.ForegroundColor = originalColor; 153Console.WriteLine(str);
dotnet-svcutil-lib.Tests (3)
UnitTest.cs (3)
30var originalOutput = Console.Out; 32Console.SetOut(writer); 37Console.SetOut(originalOutput);
dotnet-user-jwts (25)
Commands\ClearCommand.cs (1)
66if (Console.ReadLine().Trim().ToUpperInvariant() != "Y")
Commands\KeyCommand.cs (1)
71if (Console.ReadLine().Trim().ToUpperInvariant() != "Y")
Helpers\ConsoleTable.cs (1)
61var equalColumnLengths = Math.Max((Console.WindowWidth / _columns.Count) - EXCESS_LENGTH_CREATED_BY_BORDERS, 5);
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (7)
18OriginalForegroundColor = Console.ForegroundColor; 27return new AnsiConsole(Console.Out, useConsoleColor); 32return new AnsiConsole(Console.Error, useConsoleColor); 41Console.ForegroundColor = (ConsoleColor)(((int)Console.ForegroundColor & 0x08) | ((int)color & 0x07)); 52Console.ForegroundColor = (ConsoleColor)((int)Console.ForegroundColor ^ 0x08);
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (2)
64public TextWriter Out { get; set; } = Console.Out; 65public TextWriter Error { get; set; } = Console.Error;
src\aspnetcore\src\Tools\Shared\CommandLine\DebugHelper.cs (3)
22Console.WriteLine("Waiting for debugger to attach. Press ENTER to continue"); 24Console.WriteLine($"Process ID: {Environment.ProcessId}"); 28Console.ReadLine();
src\aspnetcore\src\Tools\Shared\CommandLine\PhysicalConsole.cs (10)
17Console.CancelKeyPress += (o, e) => 26public TextWriter Error => Console.Error; 27public TextReader In => Console.In; 28public TextWriter Out => Console.Out; 29public bool IsInputRedirected => Console.IsInputRedirected; 30public bool IsOutputRedirected => Console.IsOutputRedirected; 31public bool IsErrorRedirected => Console.IsErrorRedirected; 34get => Console.ForegroundColor; 35set => Console.ForegroundColor = value; 38public void ResetColor() => Console.ResetColor();
dotnet-user-secrets (22)
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (7)
18OriginalForegroundColor = Console.ForegroundColor; 27return new AnsiConsole(Console.Out, useConsoleColor); 32return new AnsiConsole(Console.Error, useConsoleColor); 41Console.ForegroundColor = (ConsoleColor)(((int)Console.ForegroundColor & 0x08) | ((int)color & 0x07)); 52Console.ForegroundColor = (ConsoleColor)((int)Console.ForegroundColor ^ 0x08);
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (2)
64public TextWriter Out { get; set; } = Console.Out; 65public TextWriter Error { get; set; } = Console.Error;
src\aspnetcore\src\Tools\Shared\CommandLine\DebugHelper.cs (3)
22Console.WriteLine("Waiting for debugger to attach. Press ENTER to continue"); 24Console.WriteLine($"Process ID: {Environment.ProcessId}"); 28Console.ReadLine();
src\aspnetcore\src\Tools\Shared\CommandLine\PhysicalConsole.cs (10)
17Console.CancelKeyPress += (o, e) => 26public TextWriter Error => Console.Error; 27public TextReader In => Console.In; 28public TextWriter Out => Console.Out; 29public bool IsInputRedirected => Console.IsInputRedirected; 30public bool IsOutputRedirected => Console.IsOutputRedirected; 31public bool IsErrorRedirected => Console.IsErrorRedirected; 34get => Console.ForegroundColor; 35set => Console.ForegroundColor = value; 38public void ResetColor() => Console.ResetColor();
dotnet-watch (3)
Program.cs (2)
66Console.Error.WriteLine("Unexpected error:"); 67Console.Error.WriteLine(ex.ToString());
UI\SpectreBuildParametersSelectionPrompt.cs (1)
93/// instead of <see cref="System.Console.ReadKey"/>.
EventHubsConsumer (3)
Program.cs (3)
7Console.WriteLine("EventHub consumer/processor test"); 16Console.WriteLine("Starting EventHubConsumerClient..."); 26Console.WriteLine("Starting EventProcessorClient...");
GenerateAnalyzerNuspec (1)
Program.cs (1)
15Console.WriteLine($"Arg {i}: {args[i]}");
GenerateDocumentationAndConfigFiles (29)
CodeFixerExtensions.cs (2)
57Console.WriteLine($"Error creating instance of {typeInfo.FullName} in {analyzerFileReference.FullPath}\r\n{ex.Message}\r\n{ex}"); 64Console.WriteLine($"Error processing analyzer file reference: {analyzerFileReference.FullPath}\r\n{ex.Message}\r\n{ex}");
Program.cs (17)
277await Console.Error.WriteLineAsync($"'{path}' does not exist").ConfigureAwait(false); 378await Console.Out.WriteLineAsync($"Failed to create analyzer rules missing documentation file. Http response timed out").ConfigureAwait(false); 384await Console.Error.WriteLineAsync("One or more auto-generated documentation files were either edited manually, or not updated. Please revert changes made to the following files (if manually edited) and run `dotnet msbuild /t:pack` at the root of the repo to automatically update them:").ConfigureAwait(false); 385fileNamesWithValidationFailures.ForEach(fileName => Console.Error.WriteLine($" {fileName}")); 821await Console.Error.WriteLineAsync($"Missing entry in {fileWithPath}").ConfigureAwait(false); 822await Console.Error.WriteLineAsync(line).ConfigureAwait(false); 877await Console.Error.WriteLineAsync($"'{assemblyPath}' does not exist").ConfigureAwait(false); 889await Console.Error.WriteLineAsync(ex.Message).ConfigureAwait(false); 915await Console.Error.WriteLineAsync($"Expected both '{shippedFile}' and '{unshippedFile}' to exist or not exist, but '{existingFile}' exists and '{nonExistingFile}' does not exist.").ConfigureAwait(false); 925await Console.Error.WriteLineAsync($"'{shippedFile}' exists but was not expected").ConfigureAwait(false); 954await Console.Error.WriteLineAsync(ex.Message).ConfigureAwait(false); 962await Console.Error.WriteLineAsync($"Could not find any 'AnalyzerReleases.Shipped.md' file").ConfigureAwait(false); 1368Console.Error.WriteLine($"'{fileWithPath}' does not match the expected contents."); 1369Console.Error.WriteLine("Expected contents:"); 1370Console.Error.WriteLine(fileContents); 1371Console.Error.WriteLine("Actual contents:"); 1372Console.Error.WriteLine(actual);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Debug.cs (2)
64Console.WriteLine(message); 65Console.WriteLine(stackTrace);
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (8)
65Console.WriteLine("Dumping info before call to failfast"); 68Console.WriteLine(message); 73Console.WriteLine("Exception info"); 76Console.WriteLine(current.Message); 77Console.WriteLine(current.StackTrace); 81Console.WriteLine("Stack trace of handler"); 83Console.WriteLine(stackTrace.ToString()); 85Console.Out.Flush();
GetDocument.Insider (23)
ProgramBase.cs (1)
28Console.OutputEncoding = Encoding.UTF8;
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (7)
18OriginalForegroundColor = Console.ForegroundColor; 27return new AnsiConsole(Console.Out, useConsoleColor); 32return new AnsiConsole(Console.Error, useConsoleColor); 41Console.ForegroundColor = (ConsoleColor)(((int)Console.ForegroundColor & 0x08) | ((int)color & 0x07)); 52Console.ForegroundColor = (ConsoleColor)((int)Console.ForegroundColor ^ 0x08);
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (2)
64public TextWriter Out { get; set; } = Console.Out; 65public TextWriter Error { get; set; } = Console.Error;
src\aspnetcore\src\Tools\Shared\CommandLine\DebugHelper.cs (3)
22Console.WriteLine("Waiting for debugger to attach. Press ENTER to continue"); 24Console.WriteLine($"Process ID: {Environment.ProcessId}"); 28Console.ReadLine();
src\aspnetcore\src\Tools\Shared\CommandLine\PhysicalConsole.cs (10)
17Console.CancelKeyPress += (o, e) => 26public TextWriter Error => Console.Error; 27public TextReader In => Console.In; 28public TextWriter Out => Console.Out; 29public bool IsInputRedirected => Console.IsInputRedirected; 30public bool IsOutputRedirected => Console.IsOutputRedirected; 31public bool IsErrorRedirected => Console.IsErrorRedirected; 34get => Console.ForegroundColor; 35set => Console.ForegroundColor = value; 38public void ResetColor() => Console.ResetColor();
ilasm (19)
IlasmRootCommand.cs (6)
166Console.WriteLine("Waiting for debugger to attach. Press ENTER to continue"); 167Console.ReadLine(); 176Console.ResetColor(); 177Console.ForegroundColor = ConsoleColor.Red; 178Console.Error.WriteLine("Error: " + e.Message); 179Console.ResetColor();
Program.cs (13)
38Console.WriteLine(IlasmRootCommand.ProductName); 39Console.WriteLine(); 44Console.Error.WriteLine("Error: No input file specified"); 53Console.Error.WriteLine($"Error: Input file not found: {file}"); 71Console.WriteLine($"Assembling '{file}' to {(isDll ? "DLL" : "EXE")} --> '{outputPath}'"); 235Console.Error.WriteLine($"Error: {diagnostic.Location}: {diagnostic.Message}"); 239Console.WriteLine($"Warning: {diagnostic.Location}: {diagnostic.Message}"); 246Console.Error.WriteLine("***** FAILURE *****"); 252Console.Error.WriteLine("***** FAILURE *****"); 266Console.WriteLine("Output file contains errors"); 271Console.WriteLine("Operation completed successfully"); 276Console.Error.WriteLine($"Error: {ex.Message}"); 283Console.WriteLine($"Total time: {stopwatch.ElapsedMilliseconds} ms");
ILAssembler (4)
gen\CILLexer.cs (2)
143 : this(input, Console.Out, Console.Error) { }
gen\CILParser.cs (2)
290 public CILParser(ITokenStream input) : this(input, Console.Out, Console.Error) { }
ilc (24)
ILCompilerRootCommand.cs (17)
345Console.WriteLine("Options may be passed on the command line, or via response file. On the command line switch values may be specified by passing " + 350Console.WriteLine("Use the '--' option to disambiguate between input files that have begin with -- and options. After a '--' option, all arguments are " + 353Console.WriteLine("Valid switches for {0} are: '{1}'. The default value is '{2}'\n", "--targetos", string.Join("', '", Helpers.ValidOS), Helpers.GetTargetOS(null).ToString().ToLowerInvariant()); 355Console.WriteLine(string.Format("Valid switches for {0} are: '{1}'. The default value is '{2}'\n", "--targetarch", string.Join("', '", Helpers.ValidArchitectures), Helpers.GetTargetArchitecture(null).ToString().ToLowerInvariant())); 357Console.WriteLine("The allowable values for the --instruction-set option are described in the table below. Each architecture has a different set of valid " + 374Console.Write(arch); 375Console.Write(": "); 380Console.Write(", "); 382Console.Write(instructionSet.Name); 388Console.WriteLine(); 391Console.WriteLine(); 392Console.WriteLine("The following CPU names are predefined groups of instruction sets and can be used in --instruction-set too:"); 393Console.WriteLine(string.Join(", ", Internal.JitInterface.InstructionSetFlags.AllCpuNames)); 447Console.WriteLine("To repro, add following arguments to the command line:"); 453Console.Write($"--singlemethodtypename \"{formatter.FormatName(failingMethod.OwningType, true)}\""); 454Console.Write($" --singlemethodname {failingMethod.GetName()}"); 457Console.Write($" --singlemethodgenericarg \"{formatter.FormatName(failingMethod.Instantiation[i], true)}\"");
Program.cs (5)
42Console.WriteLine("Waiting for debugger to attach. Press ENTER to continue"); 43Console.ReadLine(); 95var logger = new Logger(Console.Out, ilProvider, Get(_command.IsVerbose), ProcessWarningCodes(Get(_command.SuppressedWarnings)), 766Console.WriteLine($"*** {prefix} {set1name} but not {set2name}:"); 770Console.WriteLine(d.ToString());
src\runtime\src\coreclr\tools\Common\CommandLineHelpers.cs (2)
221Console.WriteLine($"Creating {zipFileName}"); 411Console.WriteLine("Warning: No files matching " + pattern);
ILCompiler.ReadyToRun (19)
CodeGen\ReadyToRunObjectWriter.cs (1)
327Console.WriteLine($@"Emitting R2R {format} file: {objectFilePath}");
Compiler\CallChainProfile.cs (5)
307Console.WriteLine("Callchain profile entries:"); 312Console.WriteLine($"{key.Key.ToString()}"); 316Console.WriteLine($"\t{calledMethodAndCount.Key.ToString()} -> {calledMethodAndCount.Value} calls"); 320Console.WriteLine($"Method resolves attempted: {_methodResolvesAttempted}"); 321Console.WriteLine($"Successfully resolved {_methodsSuccessfullyResolved} methods ({(double)_methodsSuccessfullyResolved / (double)_methodResolvesAttempted:P})");
Compiler\DependencyAnalysis\ReadyToRun\ReadyToRunHeaderNode.cs (1)
171System.Console.WriteLine(reason);
ObjectWriter\MapFileBuilder.cs (2)
75Console.WriteLine("Emitting map file: {0}", mapFileName); 91Console.WriteLine("Emitting csv files: {0}, {1}", nodeStatsCsvFileName, mapCsvFileName);
ObjectWriter\ProfileFileBuilder.cs (1)
80Console.WriteLine("Emitting profile file: {0}", profileFileName);
ObjectWriter\SymbolFileBuilder.cs (2)
30Console.WriteLine("Emitting PDB file: {0}", Path.Combine(pdbPath, Path.GetFileNameWithoutExtension(dllFileName) + ".ni.pdb")); 61Console.WriteLine("Emitting PerfMap file: {0}", perfMapFileName);
src\runtime\src\coreclr\tools\aot\ILCompiler.Reflection.ReadyToRun\PEReaderExtensions.cs (6)
101Console.Error.WriteLine($"Found a zero RVA when reading name pointers for entry #{entryIndex}/{namePointerCount}"); 113Console.Error.WriteLine($"HasExportTable: {HasExportTable}"); 114Console.Error.WriteLine($"ExportTableHeaderLength: {ExportTableHeaderLength}"); 115Console.Error.WriteLine($"_namedExportRva: {_namedExportRva.Count} item(s)"); 119Console.Error.WriteLine($" '{kvp.Key}': {kvp.Value}"); 122Console.Error.WriteLine(" ... stopped dumping named exports because there are too many.");
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (1)
1385Console.Error.WriteLine($"Failed devirtualization with unexpected unknown failure while compiling {MethodBeingCompiled} with decl {decl} targeting type {objType}");
ILCompiler.RyuJit (1)
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (1)
1385Console.Error.WriteLine($"Failed devirtualization with unexpected unknown failure while compiling {MethodBeingCompiled} with decl {decl} targeting type {objType}");
illink (100)
ILLink.RoslynAnalyzer (2)
TrimAnalysis\TrimDataFlowAnalysis.cs (2)
145Console.WriteLine(tracingInfo); 164Console.Write(tracingInfo);
Infrastructure.Common (10)
FrameworkHelper.cs (1)
47Console.WriteLine(String.Format("Detected current FrameworkID as \"{0}\" from description \"{1}\"",
OSHelper.cs (1)
87Console.WriteLine(String.Format("Detected current OSID as \"{0}\" from RuntimeEnvironment and description \"{1}\"",
ServiceUtilHelper.cs (6)
119System.Console.WriteLine(String.Format("Using root certificate:{0}{1}", 212System.Console.WriteLine(String.Format("Using client certificate:{0}{1}", 325System.Console.WriteLine(String.Format("Using peer trust certificate:{0}{1}", 572Console.WriteLine(String.Format("Invoking {0} ...", requestUri)); 591Console.WriteLine(String.Format("Invoking {0} ...", requestUri)); 610Console.WriteLine(String.Format("Invoking {0} ...", requestUri));
xunit\IssueAttribute.cs (1)
123Console.WriteLine(String.Format("Warning: The number '{0}' in IncludeTestsWithIssues is not a valid integer and will be ignored.", issue));
xunit\WcfTestCase.cs (1)
100Console.WriteLine(etwOutput);
Microsoft.Arcade.Common (3)
Command.cs (3)
131_statusForward = Console.WriteLine; 162_stdOutForward = Console.WriteLine; 177_stdErrForward = Console.WriteLine;
Microsoft.AspNetCore.Components.Testing (3)
Infrastructure\ServerInstance.cs (1)
248Console.WriteLine($"{prefix}{line}");
Infrastructure\TracingSession.cs (2)
108Console.WriteLine($"[E2E] Test artifacts saved to: {_artifactDir}"); 111Console.WriteLine($"[E2E] {Path.GetFileName(file)}");
Microsoft.AspNetCore.Components.WebAssembly (1)
Services\DefaultWebAssemblyJSRuntime.cs (1)
107Console.Error.WriteLine($"Error deserializing root component operations: {ex}");
Microsoft.AspNetCore.Components.WebAssembly.Server (2)
DebugProxyLauncher.cs (2)
51Console.WriteLine($"Invalid value for NO_PROXY: {noProxyEnvVar} (Expected values: \"localhost\" or \"127.0.0.1\")"); 161Console.WriteLine(eventArgs.Data);
Microsoft.AspNetCore.DataProtection.MicroBenchmarks (5)
src\aspnetcore\src\Shared\BenchmarkRunner\Program.cs (5)
62Console.Error.WriteLine("'{0}' failed, reason: '{1}'", o, message); 90Console.WriteLine("Using the debug config since you are debugging. I hope that's OK!"); 91Console.WriteLine("Specify a configuration with --config <name> to override"); 99_standardOutput = Console.Out; 101Console.SetOut(new StringWriter(_standardOutputText));
Microsoft.AspNetCore.Hosting (9)
Internal\WebHost.cs (1)
233Console.WriteLine("Application startup exception: " + ex.ToString());
Internal\WebHostLifetime.cs (1)
62Console.WriteLine(_shutdownMessage);
WebHostBuilder.cs (3)
148Console.WriteLine("The environment variable 'Hosting:Environment' is obsolete and has been replaced with 'ASPNETCORE_ENVIRONMENT'"); 153Console.WriteLine("The environment variable 'ASPNET_ENV' is obsolete and has been replaced with 'ASPNETCORE_ENVIRONMENT'"); 158Console.WriteLine("The environment variable 'ASPNETCORE_SERVER.URLS' is obsolete and has been replaced with 'ASPNETCORE_URLS'");
WebHostExtensions.cs (4)
119Console.WriteLine($"Hosting environment: {hostingEnvironment?.EnvironmentName}"); 120Console.WriteLine($"Content root path: {hostingEnvironment?.ContentRootPath}"); 127Console.WriteLine($"Now listening on: {address}"); 133Console.WriteLine(startupMessage);
Microsoft.AspNetCore.SpaServices.Extensions (1)
Npm\NodeScriptRunner.cs (1)
115Console.Write(chunk.Array, chunk.Offset, chunk.Count);
Microsoft.Build (88)
BackEnd\BuildManager\BuildManager.cs (3)
828Console.WriteLine($"Waiting for debugger to attach ({EnvironmentUtilities.ProcessPath} PID {EnvironmentUtilities.CurrentProcessId}). Press enter to continue..."); 830Console.ReadLine(); 1197Console.WriteLine(Strings.CreateDiagnosticReport());
BackEnd\Client\MSBuildClient.cs (4)
400consoleBufferWidth = Console.BufferWidth; 422consoleBackgroundColor = Console.BackgroundColor; 647Console.Write(consoleWrite.Text); 650Console.Error.Write(consoleWrite.Text);
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (1)
116!Console.IsInputRedirected &&
BackEnd\Components\Scheduler\SchedulingPlan.cs (16)
241Console.WriteLine("{0}: {1} ({2} referrers) {3}", configuration.Key, config.TotalPlanTime, config.ReferrerCount, config.ConfigFullPath); 244Console.WriteLine(" {0} {1}", referrer.ConfigId, referrer.ConfigFullPath); 247Console.WriteLine(); 250Console.WriteLine(); 258Console.WriteLine("Projects with the most immediate children:"); 263Console.WriteLine("{0}: {1} {2}", configuration.Key, configuration.Value.ReferencesCount, configuration.Value.ConfigFullPath); 266Console.WriteLine(); 274Console.WriteLine("Configs in hierarchy by number of occurrences:"); 279Console.WriteLine("{0}: {1} {2}", configId, _configIdToPaths[configId].Count, _configIdToData[configId].ConfigFullPath); 282Console.WriteLine(); 332Console.WriteLine("Projects by expense:"); 341Console.WriteLine("{0}: {1} {2}", config.ConfigId, config.AccumulatedTime, config.ConfigFullPath); 348Console.Write(" "); 351Console.Write(" {0}", pathEntry.ConfigId); 354Console.WriteLine(); 357Console.WriteLine();
BackEnd\Node\OutOfProcServerNode.cs (8)
419Console.BufferWidth = command.ConsoleConfiguration.BufferWidth; 424Console.BackgroundColor = command.ConsoleConfiguration.BackgroundColor; 433var oldOut = Console.Out; 434var oldErr = Console.Error; 441Console.SetOut(outWriter); 442Console.SetError(errWriter); 446Console.SetOut(oldOut); 447Console.SetError(oldErr);
Evaluation\Expander.cs (1)
1458Console.WriteLine("Expanding: {0}", propertyBody);
Logging\BaseConsoleLogger.cs (4)
307Console.ForegroundColor = TransformColor(c, ConsoleConfiguration.BackgroundColor); 322Console.ResetColor(); 360Console.Out.Write(colorString); 369Console.Out.Write("\x1b[m");
Logging\BinaryLogger\BinaryLogger.cs (1)
573Console.Error.WriteLine(message);
Logging\ConsoleLogger.cs (1)
73this(verbosity, Console.Out.Write, BaseConsoleLogger.SetColor, BaseConsoleLogger.ResetColor)
Logging\InProcessConsoleConfiguration.cs (4)
26public int BufferWidth => Console.BufferWidth; 53acceptAnsiColorCodes = !Console.IsOutputRedirected; 68return Console.BackgroundColor; 100isScreen = !Console.IsOutputRedirected;
Logging\ParallelLogger\ConsoleOutputAligner.cs (1)
12/// Align output to multiple lines so no logged test is lost due to limited <see cref="Console.BufferWidth"/>.
Logging\ParallelLogger\ParallelConsoleLogger.cs (2)
51new WriteHandler(Console.Out.Write), 1239Console.WriteLine(e.Message);
Logging\ProfilerLogger.cs (3)
288Console.WriteLine(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("WritingProfilerReport", FileToLog)); 298Console.WriteLine(ResourceUtilities.GetResourceString("WritingProfilerReportDone")); 307Console.WriteLine(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("ErrorWritingProfilerReport", ex.Message));
Logging\SimpleErrorLogger.cs (2)
73Console.Error.WriteLine(AnsiCodes.Colorize(message, color)); 77Console.Error.WriteLine(message);
Logging\TerminalLogger\Terminal.cs (19)
21/// The encoding read from <see cref="Console.OutputEncoding"/> when the terminal is constructed. 40/// Gets the height of the <see cref="Console.BufferHeight"/> of the underlying <see cref="Console"/>. 41/// If the <see cref="Console.IsOutputRedirected"/> , returns a large number to indicate that the height is unknown. 42/// If the <see cref="Console.BufferHeight"/> is zero, returns a large number to indicate that the height is unknown/synthetic. 52if (Console.IsOutputRedirected) 57return Console.BufferHeight == 0 ? BigUnknownDimension : Console.BufferHeight; 62/// Gets the width of the <see cref="Console.BufferWidth"/> of the underlying <see cref="Console"/>. 63/// If the <see cref="Console.IsOutputRedirected"/> , returns a large number to indicate that the width is unknown. 64/// If the <see cref="Console.BufferWidth"/> is zero, returns a large number to indicate that the width is unknown/synthetic. 74if (Console.IsOutputRedirected) 79return Console.BufferWidth == 0 ? BigUnknownDimension : Console.BufferWidth; 91_originalOutputEncoding = Console.OutputEncoding; 92Console.OutputEncoding = Encoding.UTF8; 98Output = Console.Out; 222Console.OutputEncoding = _originalOutputEncoding;
src\msbuild\src\Shared\Debugging\PrintLineDebuggerWriters.cs (1)
69public static CommonWriterType StdOutWriter = (id, callsite, args) => Console.WriteLine(SimpleFormat(id, callsite, args));
TelemetryInfra\InternalTelemetryConsumingLogger.cs (17)
50Console.WriteLine("=========================================="); 51Console.WriteLine($"Targets ({_workerNodeTelemetryData.TargetsExecutionData.Count}):"); 54Console.WriteLine($"{target.Key} : {target.Value}"); 57Console.WriteLine("=========================================="); 58Console.WriteLine($"Tasks: ({_workerNodeTelemetryData.TasksExecutionData.Count})"); 59Console.WriteLine("Custom tasks:"); 62Console.WriteLine($"{task.Key}"); 65Console.WriteLine("=========================================="); 66Console.WriteLine("Tasks by time:"); 69Console.WriteLine($"{task.Key} - {task.Value.CumulativeExecutionTime}"); 72Console.WriteLine("=========================================="); 73Console.WriteLine("Tasks by memory consumption:"); 76Console.WriteLine($"{task.Key} - {task.Value.TotalMemoryBytes / 1024.0:0.00}kB"); 79Console.WriteLine("=========================================="); 80Console.WriteLine("Tasks by Executions count:"); 83Console.WriteLine($"{task.Key} - {task.Value.ExecutionsCount}"); 86Console.WriteLine("==========================================");
Microsoft.Build.Framework (14)
DebugUtils.cs (1)
39Console.Error.WriteLine("MSBuild debug path initialization failed: " + ex);
EncodingUtilities.cs (2)
282Console.OutputEncoding = Encoding.UTF8; 284Console.InputEncoding = Encoding.UTF8;
NativeMethods.cs (3)
1248if (Console.IsOutputRedirected) 1254if (Console.BufferHeight == 0 || Console.BufferWidth == 0)
src\msbuild\artifacts\.packages\microsoft.codeanalysis.contracts\5.0.0-1.25277.114\contentFiles\cs\net9.0\ErrorReporting\FailFast.cs (8)
65Console.WriteLine("Dumping info before call to failfast"); 68Console.WriteLine(message); 73Console.WriteLine("Exception info"); 76Console.WriteLine(current.Message); 77Console.WriteLine(current.StackTrace); 81Console.WriteLine("Stack trace of handler"); 83Console.WriteLine(stackTrace.ToString()); 85Console.Out.Flush();
Microsoft.Build.Tasks.CodeAnalysis (16)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Debug.cs (2)
64Console.WriteLine(message); 65Console.WriteLine(stackTrace);
src\roslyn\src\Compilers\Shared\ConsoleUtil.cs (6)
17/// This will update the <see cref="Console.Out"/> value to have UTF-8 encoding for the duration of the 22Encoding savedEncoding = Console.OutputEncoding; 25Console.OutputEncoding = s_utf8Encoding; 26return func(Console.Out); 32Console.OutputEncoding = savedEncoding; 45if (textWriter != Console.Out)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (8)
65Console.WriteLine("Dumping info before call to failfast"); 68Console.WriteLine(message); 73Console.WriteLine("Exception info"); 76Console.WriteLine(current.Message); 77Console.WriteLine(current.StackTrace); 81Console.WriteLine("Stack trace of handler"); 83Console.WriteLine(stackTrace.ToString()); 85Console.Out.Flush();
Microsoft.Build.Tasks.Core (1)
src\msbuild\src\Shared\Debugging\PrintLineDebuggerWriters.cs (1)
69public static CommonWriterType StdOutWriter = (id, callsite, args) => Console.WriteLine(SimpleFormat(id, callsite, args));
Microsoft.Build.Utilities.Core (1)
src\msbuild\src\Shared\Debugging\PrintLineDebuggerWriters.cs (1)
69public static CommonWriterType StdOutWriter = (id, callsite, args) => Console.WriteLine(SimpleFormat(id, callsite, args));
Microsoft.CodeAnalysis (11)
CommandLine\CommonCompiler.cs (1)
263using var data = Console.OpenStandardInput();
InternalUtilities\Debug.cs (2)
64Console.WriteLine(message); 65Console.WriteLine(stackTrace);
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (8)
65Console.WriteLine("Dumping info before call to failfast"); 68Console.WriteLine(message); 73Console.WriteLine("Exception info"); 76Console.WriteLine(current.Message); 77Console.WriteLine(current.StackTrace); 81Console.WriteLine("Stack trace of handler"); 83Console.WriteLine(stackTrace.ToString()); 85Console.Out.Flush();
Microsoft.CodeAnalysis.Analyzers (10)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Debug.cs (2)
64Console.WriteLine(message); 65Console.WriteLine(stackTrace);
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (8)
65Console.WriteLine("Dumping info before call to failfast"); 68Console.WriteLine(message); 73Console.WriteLine("Exception info"); 76Console.WriteLine(current.Message); 77Console.WriteLine(current.StackTrace); 81Console.WriteLine("Stack trace of handler"); 83Console.WriteLine(stackTrace.ToString()); 85Console.Out.Flush();
Microsoft.CodeAnalysis.AnalyzerUtilities (10)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Debug.cs (2)
64Console.WriteLine(message); 65Console.WriteLine(stackTrace);
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (8)
65Console.WriteLine("Dumping info before call to failfast"); 68Console.WriteLine(message); 73Console.WriteLine("Exception info"); 76Console.WriteLine(current.Message); 77Console.WriteLine(current.StackTrace); 81Console.WriteLine("Stack trace of handler"); 83Console.WriteLine(stackTrace.ToString()); 85Console.Out.Flush();
Microsoft.CodeAnalysis.CodeStyle (10)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Debug.cs (2)
64Console.WriteLine(message); 65Console.WriteLine(stackTrace);
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (8)
65Console.WriteLine("Dumping info before call to failfast"); 68Console.WriteLine(message); 73Console.WriteLine("Exception info"); 76Console.WriteLine(current.Message); 77Console.WriteLine(current.StackTrace); 81Console.WriteLine("Stack trace of handler"); 83Console.WriteLine(stackTrace.ToString()); 85Console.Out.Flush();
Microsoft.CodeAnalysis.CSharp (4)
CommandLine\CSharpCommandLineParser.cs (4)
296Console.WriteLine($"Compiler started with process ID {Environment.ProcessId}"); 297Console.WriteLine($"Waiting {timeout:g} for a debugger to attach"); 317if (Console.IsInputRedirected) 1379if (Console.IsInputRedirected)
Microsoft.CodeAnalysis.Extensions.Package (8)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (8)
65Console.WriteLine("Dumping info before call to failfast"); 68Console.WriteLine(message); 73Console.WriteLine("Exception info"); 76Console.WriteLine(current.Message); 77Console.WriteLine(current.StackTrace); 81Console.WriteLine("Stack trace of handler"); 83Console.WriteLine(stackTrace.ToString()); 85Console.Out.Flush();
Microsoft.CodeAnalysis.Features (3)
Snippets\SnippetProviders\AbstractConsoleSnippetProvider.cs (3)
43var resultingNode = generator.InvocationExpression(generator.MemberAccessExpression(generator.IdentifierName(nameof(Console)), nameof(Console.WriteLine))); 83=> compilation.GetBestTypeByMetadataName(typeof(Console).FullName!);
Microsoft.CodeAnalysis.ResxSourceGenerator (10)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Debug.cs (2)
64Console.WriteLine(message); 65Console.WriteLine(stackTrace);
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (8)
65Console.WriteLine("Dumping info before call to failfast"); 68Console.WriteLine(message); 73Console.WriteLine("Exception info"); 76Console.WriteLine(current.Message); 77Console.WriteLine(current.StackTrace); 81Console.WriteLine("Stack trace of handler"); 83Console.WriteLine(stackTrace.ToString()); 85Console.Out.Flush();
Microsoft.CodeAnalysis.Scripting (5)
Hosting\CommandLine\ConsoleIO.cs (5)
15public static readonly ConsoleIO Default = new ConsoleIO(Console.Out, Console.Error, Console.In); 31public virtual void SetForegroundColor(ConsoleColor consoleColor) => Console.ForegroundColor = consoleColor; 33public virtual void ResetColor() => Console.ResetColor();
Microsoft.CodeAnalysis.Workspaces (10)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Debug.cs (2)
64Console.WriteLine(message); 65Console.WriteLine(stackTrace);
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (8)
65Console.WriteLine("Dumping info before call to failfast"); 68Console.WriteLine(message); 73Console.WriteLine("Exception info"); 76Console.WriteLine(current.Message); 77Console.WriteLine(current.StackTrace); 81Console.WriteLine("Stack trace of handler"); 83Console.WriteLine(stackTrace.ToString()); 85Console.Out.Flush();
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (3)
Program.cs (1)
20var logger = new BuildHostLogger(Console.Error);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Debug.cs (2)
64Console.WriteLine(message); 65Console.WriteLine(stackTrace);
Microsoft.CodeAnalysis.Workspaces.MSBuild.Contracts (8)
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (8)
65Console.WriteLine("Dumping info before call to failfast"); 68Console.WriteLine(message); 73Console.WriteLine("Exception info"); 76Console.WriteLine(current.Message); 77Console.WriteLine(current.StackTrace); 81Console.WriteLine("Stack trace of handler"); 83Console.WriteLine(stackTrace.ToString()); 85Console.Out.Flush();
Microsoft.Data.Analysis.Tests (4)
test\Microsoft.ML.TestFramework\BaseTestClass.cs (3)
34Console.WriteLine($"Unhandled exception: {e.ExceptionObject}"); 74Console.WriteLine($"Starting test: {FullTestName}"); 82Console.WriteLine($"Finished test: {FullTestName} " +
test\Microsoft.ML.TestFramework\GlobalBase.cs (1)
77Console.WriteLine("Assert handler invoked but ignored: {0}", msg);
Microsoft.Diagnostics.DataContractReader.Contracts (4)
Contracts\StackWalk\Context\X86\GCInfoDecoding\GCArgTable.cs (4)
365Console.WriteLine($"stkOffs: {stkOffs}, lowBit: {lowBit}"); 378Console.WriteLine($"lastSkip: {lastSkip}"); 521Console.WriteLine($"CallArgCount: {callArgCnt}"); 522Console.WriteLine($"CallPndTabCnt: {callPndTabSize}");
Microsoft.Diagnostics.DataContractReader.Legacy (2)
LegacyFallbackHelper.cs (2)
53Console.Error.WriteLine($"[cDAC] Allowed fallback: {name} at {Path.GetFileName(file)}:{line}"); 57Console.Error.WriteLine($"[cDAC] Blocked fallback: {name} at {Path.GetFileName(file)}:{line}");
Microsoft.DotNet.ApiSymbolExtensions (5)
Logging\ConsoleLog.cs (5)
20Console.Error.WriteLine(message); 27Console.Error.WriteLine($"{code}: {message}"); 32Console.WriteLine(message); 46Console.WriteLine(messageTextWithCode); 60Console.WriteLine(message);
Microsoft.DotNet.Arcade.Sdk (3)
src\InstallDotNetCore.cs (3)
171Console.WriteLine(e.Data); 178Console.Error.WriteLine(e.Data); 273Console.WriteLine($" Runtime toolset '{runtime}/{architecture} v{version}' already installed in directory '{runtimePath}'.");
Microsoft.DotNet.Cli.Definitions (1)
Common\CommonOptions.cs (1)
238new Telemetry.CIEnvironmentDetectorForTelemetry().IsCIEnvironment() || Console.IsOutputRedirected;
Microsoft.DotNet.Cli.Utils (19)
AnsiConsole.cs (6)
15OriginalForegroundColor = Console.ForegroundColor; 25return new AnsiConsole(Console.Out); 30return new AnsiConsole(Console.Error); 46Console.ForegroundColor = 66SetColor(Console.ForegroundColor); 143Console.ForegroundColor = OriginalForegroundColor;
BuiltInCommand.cs (4)
121return Console.Out; 126Console.SetOut(newOut); 131return Console.Error; 136Console.SetError(newError);
DebugHelper.cs (3)
28Console.WriteLine(LocalizableStrings.WaitingForDebuggerToAttach); 29Console.WriteLine(string.Format(LocalizableStrings.ProcessId, processId)); 30Console.ReadLine();
MSBuildForwardingAppWithoutLogging.cs (2)
215Console.Error.Write("Unhandled exception: "); 216Console.Error.WriteLine(exception.ToString());
ProcessReaper.cs (2)
208Console.CancelKeyPress += HandleCancelKeyPress; 218Console.CancelKeyPress -= HandleCancelKeyPress;
UILanguageOverride.cs (2)
40Console.OutputEncoding = s_defaultMultilingualEncoding; 41Console.InputEncoding = s_defaultMultilingualEncoding;
Microsoft.DotNet.HotReload.Utils.Generator (17)
BaselineProject.cs (4)
37Console.WriteLine ($"msbuild failed opening project {config.ProjectPath}"); 38Console.WriteLine ($"MSBuildWorkspace {diag.Diagnostic.Kind}: {diag.Diagnostic.Message}"); 92Console.Error.WriteLine ("msbuild project doesn't have an output path"); 96Console.Error.WriteLine ("msbuild project output assembly {0} doesn't exist. Build the project first", outputAsm);
DeltaProject.cs (5)
66Console.WriteLine ($"parsing patch #{dinfo.Rev} from {change.Update} and creating delta"); 87Console.WriteLine ("no changes found"); 94Console.WriteLine ($"Found changes in {oldDocument.Name}"); 108Console.WriteLine("change service made {0}", fancyChange.ModuleId); 124Console.WriteLine($"wrote {dinfo.Dmeta}");
Runner.cs (3)
58Console.WriteLine ("baseline ready"); 81Console.WriteLine ("Unknown EnC capability '{0}', ignored.", unk); 113Console.WriteLine ("got a change");
Runners\LiveRunner.cs (4)
38Console.WriteLine($"change in {fsevent.FullPath} is a {fsevent.ChangeType} at {e}"); 40Console.WriteLine($"too soon {e-last}"); 43Console.WriteLine($"more than 250ms since last change"); 47Console.WriteLine ($"ignoring change in {fp} which is not in {baselineProjectId}");
Runners\ScriptRunner.cs (1)
67Console.WriteLine ($"Unknown EnC capability '{unk}' in '{config.ScriptPath}', ignored.");
Microsoft.DotNet.HotReload.Utils.Generator.Frontend (8)
Frontend.cs (8)
28Console.Error.WriteLine ($"Error: {exn.Message}"); 38Console.WriteLine ("done"); 45Console.WriteLine("hotreload-delta-gen.exe -msbuild:project.csproj [-p:Key=Value ...] [-live|-script:script.json [-outputSummary:results.json]]"); 73Console.WriteLine("\t-p option needs a key=value pair"); 84Console.WriteLine ($"\tUnexpected trailing option {fn}"); 91Console.WriteLine ("\tmsbuild project is required"); 97Console.WriteLine("\tExactly one of -live or -script:script.json is required"); 103Console.WriteLine ("-outputSummary and -live cannot be used at the same time");
Microsoft.DotNet.HotReload.Watch (15)
Context\EnvironmentOptions.cs (1)
18/// Instead of using <see cref="Console.ReadKey()"/> to watch for Ctrl+C, Ctlr+R, and other keys, read from standard input.
UI\PhysicalConsole.cs (14)
18Console.OutputEncoding = Encoding.UTF8; 24else if (!Console.IsInputRedirected) 32using var stream = Console.OpenStandardInput(); 48Console.WriteLine("Received CTRL+C key"); 55Console.WriteLine($"Sending Ctrl+C to {processId}"); 60Console.WriteLine($"Sending SIGTERM to {processId}"); 110Console.CancelKeyPress += (s, e) => 120var key = Console.ReadKey(intercept: true); 126public TextWriter Error => Console.Error; 127public TextWriter Out => Console.Out; 131get => Console.ForegroundColor; 132set => Console.ForegroundColor = value; 135public void ResetColor() => Console.ResetColor(); 136public void Clear() => Console.Clear();
Microsoft.DotNet.MacOsPkg.Cli (1)
Program.cs (1)
26Console.Error.WriteLine("This tool is only supported on macOS.");
Microsoft.DotNet.MacOsPkg.Core (5)
MacOsPkgCore.cs (3)
36Console.Error.WriteLine(e); 81Console.Error.WriteLine(e); 121Console.Error.WriteLine(e);
Package.cs (2)
206Console.WriteLine($"Verifying signature of {inputPath}"); 209Console.WriteLine(output);
Microsoft.DotNet.VersionTools.Cli (5)
ConsoleLogger.cs (5)
12Console.WriteLine(String.Format(message, values)); 17var fgColor = Console.ForegroundColor; 18Console.ForegroundColor = ConsoleColor.Red; 19Console.Error.WriteLine(String.Format(message, values)); 20Console.ForegroundColor = fgColor;
Microsoft.Extensions.AI.Evaluation.Console (7)
Commands\ReportCommand.cs (3)
141System.Console.IsInputRedirected && 142System.Console.IsOutputRedirected && 143System.Console.IsErrorRedirected;
Program.cs (2)
31System.Console.WriteLine(Banner); 32System.Console.WriteLine();
Telemetry\TelemetryConstants.cs (2)
149System.Console.WriteLine(TelemetryOptOutMessage); 150System.Console.WriteLine();
Microsoft.Extensions.AotCompatibility.TestApp (1)
Program.cs (1)
4System.Console.WriteLine("Success!");
Microsoft.Extensions.Diagnostics (1)
Metrics\DebugConsoleMetricListener.cs (1)
69var writer = _textWriter ?? Console.Out;
Microsoft.Extensions.DotNetDeltaApplier (4)
src\sdk\src\Dotnet.Watch\HotReloadAgent.Host\StartupHook.cs (4)
78Console.CancelKeyPress += (_, _) => Environment.Exit(0); 169Console.ForegroundColor = ConsoleColor.DarkGray; 172Console.Error.WriteLine($"{prefix} {message}"); 176Console.ResetColor();
Microsoft.Extensions.Logging.Console (8)
AnsiLogConsole.cs (2)
17_textWriter = stdErr ? System.Console.Error : System.Console.Out;
AnsiParsingLogConsole.cs (5)
21_textWriter = stdErr ? System.Console.Error : System.Console.Out; 40System.Console.BackgroundColor = background.Value; 50System.Console.ForegroundColor = foreground.Value; 58System.Console.ResetColor();
src\runtime\src\libraries\Common\src\System\Console\ConsoleUtils.cs (1)
28bool enabled = GetColorOverrideFromEnvironment() ?? !Console.IsOutputRedirected;
Microsoft.Extensions.ServiceDiscovery.Dns.Tests.Fuzzing (2)
Program.cs (2)
21Console.Error.WriteLine($""" 42Console.Error.WriteLine($"Unknown fuzzer: {arg}");
Microsoft.Extensions.Telemetry (1)
Latency\Internal\LatencyConsoleExporter.cs (1)
108return Console.Out.WriteAsync(sb.ToString());
Microsoft.Extensions.Telemetry.Tests (5)
Latency\Internal\LatencyConsoleExporterTests.cs (4)
71System.Console.SetOut(a); 93System.Console.SetOut(a); 115System.Console.SetOut(a); 137System.Console.SetOut(a);
Logging\ExtendedLoggerFactoryTests.cs (1)
268System.Console.WriteLine(s);
Microsoft.ML.AutoML.Samples (92)
AutoFit\BinaryClassificationExperiment.cs (16)
25Console.WriteLine($"Running AutoML binary classification experiment for {ExperimentTime} seconds..."); 32Console.WriteLine($"Total models produced: {experimentResult.RunDetails.Count()}"); 33Console.WriteLine($"Best model's trainer: {bestRun.TrainerName}"); 34Console.WriteLine($"Metrics of best model from validation data --"); 40Console.WriteLine($"Metrics of best model on test data --"); 56Console.WriteLine($"Predicted sentiment for test issue: {prediction.Prediction}"); 58Console.WriteLine("Press any key to continue..."); 59Console.ReadKey(); 64Console.WriteLine($"Accuracy: {metrics.Accuracy}"); 65Console.WriteLine($"AreaUnderPrecisionRecallCurve: {metrics.AreaUnderPrecisionRecallCurve}"); 66Console.WriteLine($"AreaUnderRocCurve: {metrics.AreaUnderRocCurve}"); 67Console.WriteLine($"F1Score: {metrics.F1Score}"); 68Console.WriteLine($"NegativePrecision: {metrics.NegativePrecision}"); 69Console.WriteLine($"NegativeRecall: {metrics.NegativeRecall}"); 70Console.WriteLine($"PositivePrecision: {metrics.PositivePrecision}"); 71Console.WriteLine($"PositiveRecall: {metrics.PositiveRecall}");
AutoFit\MulticlassClassificationExperiment.cs (12)
26Console.WriteLine($"Running AutoML multiclass classification experiment for {ExperimentTime} seconds..."); 33Console.WriteLine($"Total models produced: {experimentResult.RunDetails.Count()}"); 34Console.WriteLine($"Best model's trainer: {bestRun.TrainerName}"); 35Console.WriteLine($"Metrics of best model from validation data --"); 41Console.WriteLine($"Metrics of best model on test data --"); 57Console.WriteLine($"Predicted number for test pixels: {prediction.Prediction}"); 59Console.WriteLine("Press any key to continue..."); 60Console.ReadKey(); 65Console.WriteLine($"LogLoss: {metrics.LogLoss}"); 66Console.WriteLine($"LogLossReduction: {metrics.LogLossReduction}"); 67Console.WriteLine($"MacroAccuracy: {metrics.MacroAccuracy}"); 68Console.WriteLine($"MicroAccuracy: {metrics.MicroAccuracy}");
AutoFit\RankingExperiment.cs (11)
29Console.WriteLine($"Running AutoML recommendation experiment for {ExperimentTime} seconds..."); 41Console.WriteLine($"Total models produced: {experimentResult.RunDetails.Count()}"); 42Console.WriteLine($"Best model's trainer: {bestRun.TrainerName}"); 43Console.WriteLine($"Metrics of best model from validation data --"); 49Console.WriteLine($"Metrics of best model on test data --"); 66Console.WriteLine($"Predicted rating for: {prediction.Prediction}"); 76Console.WriteLine($"Predicted: {prediction.Prediction}"); 78Console.WriteLine("Press any key to continue..."); 79Console.ReadKey(); 84Console.WriteLine($"NormalizedDiscountedCumulativeGains: {metrics.NormalizedDiscountedCumulativeGains}"); 85Console.WriteLine($"DiscountedCumulativeGains: {metrics.DiscountedCumulativeGains}");
AutoFit\RecommendationExperiment.cs (13)
32Console.WriteLine($"Running AutoML recommendation experiment for {ExperimentTime} seconds..."); 45Console.WriteLine($"Total models produced: {experimentResult.RunDetails.Count()}"); 46Console.WriteLine($"Best model's trainer: {bestRun.TrainerName}"); 47Console.WriteLine($"Metrics of best model from validation data --"); 53Console.WriteLine($"Metrics of best model on test data --"); 69Console.WriteLine($"Predicted rating for: {prediction.Rating}"); 78Console.WriteLine($"Expected Rating NaN for unknown user, Predicted: {prediction.Rating}"); 80Console.WriteLine("Press any key to continue..."); 81Console.ReadKey(); 86Console.WriteLine($"MeanAbsoluteError: {metrics.MeanAbsoluteError}"); 87Console.WriteLine($"MeanSquaredError: {metrics.MeanSquaredError}"); 88Console.WriteLine($"RootMeanSquaredError: {metrics.RootMeanSquaredError}"); 89Console.WriteLine($"RSquared: {metrics.RSquared}");
AutoFit\RegressionExperiment.cs (12)
26Console.WriteLine($"Running AutoML regression experiment for {ExperimentTime} seconds..."); 33Console.WriteLine($"Total models produced: {experimentResult.RunDetails.Count()}"); 34Console.WriteLine($"Best model's trainer: {bestRun.TrainerName}"); 35Console.WriteLine($"Metrics of best model from validation data --"); 41Console.WriteLine($"Metrics of best model on test data --"); 62Console.WriteLine($"Predicted fare for test taxi trip: {prediction.FareAmount}"); 64Console.WriteLine("Press any key to continue..."); 65Console.ReadKey(); 70Console.WriteLine($"MeanAbsoluteError: {metrics.MeanAbsoluteError}"); 71Console.WriteLine($"MeanSquaredError: {metrics.MeanSquaredError}"); 72Console.WriteLine($"RootMeanSquaredError: {metrics.RootMeanSquaredError}"); 73Console.WriteLine($"RSquared: {metrics.RSquared}");
AutoMLExperiment.cs (9)
39Console.WriteLine(e.RawMessage); 130Console.WriteLine($"Accuracy: {metrics.Accuracy:F2}"); 131Console.WriteLine($"AUC: {metrics.AreaUnderRocCurve:F2}"); 132Console.WriteLine($"F1 Score: {metrics.F1Score:F2}"); 133Console.WriteLine($"Negative Precision: " + 136Console.WriteLine($"Negative Recall: {metrics.NegativeRecall:F2}"); 137Console.WriteLine($"Positive Precision: " + 140Console.WriteLine($"Positive Recall: {metrics.PositiveRecall:F2}\n"); 141Console.WriteLine(metrics.ConfusionMatrix.GetFormattedConfusionTable());
Cifar10.cs (1)
32Console.WriteLine(o.Message);
Program.cs (9)
14Console.Clear(); 17Console.Clear(); 20Console.Clear(); 23Console.Clear(); 26Console.Clear(); 29Console.Clear(); 31Console.WriteLine("Done"); 35Console.WriteLine($"Exception {ex}"); 38Console.ReadLine();
Sweepable\SweepableLightGBMBinaryExperiment.cs (9)
65Console.WriteLine(e.RawMessage); 157Console.WriteLine($"Accuracy: {metrics.Accuracy:F2}"); 158Console.WriteLine($"AUC: {metrics.AreaUnderRocCurve:F2}"); 159Console.WriteLine($"F1 Score: {metrics.F1Score:F2}"); 160Console.WriteLine($"Negative Precision: " + 163Console.WriteLine($"Negative Recall: {metrics.NegativeRecall:F2}"); 164Console.WriteLine($"Positive Precision: " + 167Console.WriteLine($"Positive Recall: {metrics.PositiveRecall:F2}\n"); 168Console.WriteLine(metrics.ConfusionMatrix.GetFormattedConfusionTable());
Microsoft.ML.AutoML.Tests (6)
GetNextPipelineTests.cs (1)
36Console.WriteLine(serialized);
SweeperTests.cs (5)
75Console.WriteLine($"{metric}\t{x1},{x2}"); 80Console.WriteLine($"Best: {bestResult.MetricValue}"); 131Console.WriteLine($"{metric}\t{x1},{x2},{x3},{x4}"); 136Console.WriteLine($"Best: {bestResult.MetricValue}"); 172Console.WriteLine("{0}--{1}--{2}--{3}", count, foo, bar, metric);
Microsoft.ML.Core (15)
CommandLine\CmdParser.cs (5)
223return ParseArguments(env, settings, destination, Console.Error.WriteLine); 287return ParseArguments(env, settings, destination, Console.Error.WriteLine, out helpText); 425_reporter = Console.Error.WriteLine; 857int screenWidth = columns ?? Console.BufferWidth; 1058Console.WriteLine("Error: Can't open command line argument file '{0}' : '{1}'", path, e.Message);
ComponentModel\AssemblyLoadingUtils.cs (1)
57Console.Error.WriteLine("Warning: Could not load '{0}': {1}", path, ex.Message);
Environment\ConsoleEnvironment.cs (8)
50_colorOut = outWriter == Console.Out; 51_colorErr = outWriter == Console.Error; 87Console.ForegroundColor = messageColor; 105Console.ResetColor(); 309if (isError && _err != _out && (_out != Console.Out || _err != Console.Error)) 374_consoleWriter = new ConsoleWriter(this, outWriter ?? Console.Out, errWriter ?? Console.Error, testWriter);
Utilities\HashArray.cs (1)
228Console.WriteLine("Table: {0} out of {1}", c, _rgit.Length);
Microsoft.ML.CpuMath.PerformanceTests (1)
PerformanceTests.cs (1)
68Console.WriteLine("Random seed: " + seed + "; set environment variable CPUMATH_SEED to this value to reproduce results");
Microsoft.ML.Data (1)
DataLoadSave\Text\TextLoaderParser.cs (1)
1499Console.WriteLine("Warning: Feature count mismatch: {0} vs {1}", csrc, _csrc);
Microsoft.ML.GenAI.Samples (11)
Llama\LlamaSample.cs (1)
33Console.WriteLine("Loading Llama from huggingface model weight folder");
Llama\SFT_Llama_3_2_1B.cs (1)
90Console.WriteLine("Loading Llama from huggingface model weight folder");
MEAI\Llama3_1.cs (2)
34Console.WriteLine("Loading Llama from huggingface model weight folder"); 51Console.Write(response.Text);
MEAI\Phi3.cs (1)
41Console.Write(response.Text);
Mistral\Mistral_7B_Instruct.cs (4)
42Console.WriteLine("Loading Mistral from huggingface model weight folder"); 73Console.WriteLine("Loading Mistral from huggingface model weight folder"); 109Console.WriteLine($"The similarity score between query and document is {score}"); 127Console.WriteLine("Loading Mistral from huggingface model weight folder");
Phi3Mini\SemanticKernelSample.cs (2)
41Console.Write(response); 67Console.WriteLine(response);
Microsoft.ML.IntegrationTests (2)
IntegrationTestBaseClass.cs (2)
65Console.WriteLine($"Starting test: {FullTestName}"); 78Console.WriteLine($"Finished test: {FullTestName}");
Microsoft.ML.Maml (6)
HelpCommand.cs (1)
349int screenWidth = (columns ?? Console.BufferWidth) - 1;
MAML.cs (5)
227Console.Error.WriteLine("Progress tracking terminated with an exception"); 228PrintExceptionData(Console.Error, ex, false); 229Console.Error.WriteLine("Progress tracking is terminated."); 327Console.WriteLine("Usage: maml <cmd> <args>"); 328Console.WriteLine(" To get a list of commands: maml ?");
Microsoft.ML.NugetPackageVersionUpdater (2)
Program.cs (2)
72Console.WriteLine($"Update packege {packageName} to version {latestVersion}."); 75Console.WriteLine($"Can't find newer version of Package {packageName} from NuGet source, don't need to update version.");
Microsoft.ML.PerformanceTests (5)
FeaturizeTextBench.cs (1)
30Console.WriteLine($"Created dataset in temporary file:\n{path}\n");
Harness\Metrics.cs (1)
29Console.WriteLine(metric.ToParsableString());
ImageClassificationBench.cs (2)
202Console.WriteLine(""); 203Console.WriteLine("Extracting is completed.");
TextLoaderBench.cs (1)
33Console.WriteLine($"Created dataset in temporary file:\n{path}\n");
Microsoft.ML.ResultProcessor (13)
ResultProcessor.cs (13)
161Console.Error.WriteLine("Can't load trainer '{0}'", predictorName); 384Console.Error.WriteLine("ResultProcessor was asked to process results from file {0} which does not exist.", filename); 391Console.Error.WriteLine("Empty file {0}", filename); 415Console.Error.WriteLine("Results file {0} does not contain the MAML executable command:", filename); 416Console.Error.WriteLine("\t{0}", commandline); 630Console.Error.WriteLine("Invalid file format."); 904Console.Error.WriteLine("ResultProcessor tried to extract fold starting at line {0}, couldn't find end-of-fold separator before end of file.", startLineIdx); 911Console.Error.WriteLine("ResultProcessor failed to parse fold starting at line {0} ending at line {1}.", startLineIdx, endLineIdx); 916Console.Error.WriteLine("Fold {0} results have already been added, not adding.", thisFoldResults.Key); 967Console.Error.WriteLine("Couldn't parse fold index line: " + lines[0]); 973Console.Error.WriteLine("Couldn't parse fold index line: " + lines[0]); 1024Console.Error.WriteLine(e.Message); 1082? File.CreateText(cmd.OutputFile) : Console.Out);
Microsoft.ML.Samples (976)
Dynamic\DataOperations\BootstrapSample.cs (3)
48Console.WriteLine($"Label\tFeature"); 51Console.WriteLine($"{row.Label}\t{row.Feature}"); 53Console.WriteLine();
Dynamic\DataOperations\Cache.cs (3)
22Console.WriteLine($"Lines={lines}," + 39Console.WriteLine($"Lines={lines}," + 52Console.WriteLine(
Dynamic\DataOperations\CrossValidationSplit.cs (4)
207Console.WriteLine($"The data in the Train split."); 209Console.WriteLine($"{row.Group}, {row.Features}"); 211Console.WriteLine($"\nThe data in the Test split."); 213Console.WriteLine($"{row.Group}, {row.Features}");
Dynamic\DataOperations\DataViewEnumerable.cs (4)
40Console.WriteLine($"Date\tTemperature"); 42Console.WriteLine( 53Console.WriteLine($"Date\tTemperature\tLatitude"); 55Console.WriteLine($"{row.Date.ToString("d")}\t{row.Temperature}"
Dynamic\DataOperations\FilterRowsByColumn.cs (5)
23Console.WriteLine($"Date\tTemperature"); 26Console.WriteLine( 30Console.WriteLine(); 56Console.WriteLine($"Date\tTemperature"); 59Console.WriteLine(
Dynamic\DataOperations\FilterRowsByCustomPredicate.cs (5)
30Console.WriteLine("Name"); 33Console.WriteLine(row.Name); 35Console.WriteLine(); 56Console.WriteLine("Name"); 59Console.WriteLine(row.Name);
Dynamic\DataOperations\FilterRowsByKeyColumnFraction.cs (6)
43Console.WriteLine($"Age"); 46Console.WriteLine($"{row.Age}"); 76Console.WriteLine($"Age"); 79Console.WriteLine($"{row.Age}"); 105Console.WriteLine($"Age"); 108Console.WriteLine($"{row.Age}");
Dynamic\DataOperations\FilterRowsByMissingValues.cs (2)
43Console.WriteLine($"Feature1 Feature2"); 47Console.WriteLine($"{row.Feature1}" +
Dynamic\DataOperations\FilterRowsByStatefulCustomPredicate.cs (5)
30Console.WriteLine("Name"); 33Console.WriteLine(row.Name); 35Console.WriteLine(); 62Console.WriteLine("Name"); 65Console.WriteLine(row.Name);
Dynamic\DataOperations\LoadFromEnumerable.cs (3)
42Console.WriteLine($"Is the size of the Features column known: " + 66Console.WriteLine($"Is the size of the Features column known: " + 86Console.WriteLine($"Is the size of the Features column known: " +
Dynamic\DataOperations\LoadingSvmLight.cs (2)
85Console.WriteLine($"Column {col.Name} type {col.Type}"); 107Console.WriteLine($"{label} {weight} {string.Join(' ', features.DenseValues())}");
Dynamic\DataOperations\LoadingText.cs (2)
104Console.WriteLine(featuresColumn.Value.ToString()); 193Console.WriteLine(rowCount);
Dynamic\DataOperations\SaveAndLoadFromBinary.cs (1)
45Console.WriteLine($"{row.Label}, {row.Features}");
Dynamic\DataOperations\SaveAndLoadFromText.cs (1)
45Console.WriteLine($"{row.Label}, {row.Features}");
Dynamic\DataOperations\ShuffleRows.cs (5)
23Console.WriteLine($"Date\tTemperature"); 26Console.WriteLine($"{row.Date.ToString("d")}" + 29Console.WriteLine(); 47Console.WriteLine($"Date\tTemperature"); 50Console.WriteLine($"{row.Date.ToString("d")}" +
Dynamic\DataOperations\SkipRows.cs (5)
22Console.WriteLine($"Date\tTemperature"); 25Console.WriteLine($"{row.Date.ToString("d")}" + 28Console.WriteLine(); 51Console.WriteLine($"Date\tTemperature"); 54Console.WriteLine($"{row.Date.ToString("d")}" +
Dynamic\DataOperations\TakeRows.cs (5)
23Console.WriteLine($"Date\tTemperature"); 26Console.WriteLine($"{row.Date.ToString("d")}" + 29Console.WriteLine(); 52Console.WriteLine($"Date\tTemperature"); 55Console.WriteLine($"{row.Date.ToString("d")}" +
Dynamic\DataOperations\TrainTestSplit.cs (4)
114Console.WriteLine($"The data in the Train split."); 116Console.WriteLine($"{row.Group}, {row.Features}"); 118Console.WriteLine($"\nThe data in the Test split."); 120Console.WriteLine($"{row.Group}, {row.Features}");
Dynamic\ModelOperations\OnnxConversion.cs (2)
25Console.WriteLine("{0, -10} {1, -10}", "Score", value.Score); 31Console.WriteLine("{0, -10} {1, -10}", "Score", value.Score.GetItemOrDefault(0));
Dynamic\ModelOperations\SaveLoadModel.cs (1)
45Console.WriteLine("Value: {0}\t Key:{1}", transformation.Value,
Dynamic\ModelOperations\SaveLoadModelFile.cs (1)
44Console.WriteLine("Value: {0}\t Key:{1}", transformation.Value,
Dynamic\NgramExtraction.cs (4)
71Console.WriteLine( 78Console.Write($"'{slots[item.Key]}' - {item.Value} "); 79Console.WriteLine(""); 82Console.WriteLine(
Dynamic\SimpleDataViewImplementation.cs (1)
63Console.WriteLine(
Dynamic\TensorFlow\ImageClassification.cs (2)
62Console.WriteLine( 65Console.WriteLine(new string('-', 10));
Dynamic\TensorFlow\TextClassification.cs (5)
67Console.WriteLine("Name: {0}, Type: {1}, Shape: (-1, {2})", "Features", 72Console.WriteLine("Name: {0}, Type: {1}, Shape: (-1, {2})", 125Console.WriteLine("Number of classes: {0}", prediction.Prediction 127Console.WriteLine("Is sentiment/review positive? {0}", prediction 129Console.WriteLine("Prediction Confidence: {0}", prediction.Prediction[1]
Dynamic\TextTransform.cs (4)
80Console.WriteLine( 86Console.Write($"{value} "); 87Console.WriteLine(""); 90Console.WriteLine(
Dynamic\Trainers\AnomalyDetection\RandomizedPcaSample.cs (2)
61Console.WriteLine("The {0}-th example with features [{1}] is " + 66Console.WriteLine("The {0}-th example with features [{1}] is " +
Dynamic\Trainers\AnomalyDetection\RandomizedPcaSampleWithOptions.cs (2)
69Console.WriteLine("The {0}-th example with features [{1}] is" + 74Console.WriteLine("The {0}-th example with features [{1}] is" +
Dynamic\Trainers\BinaryClassification\AveragedPerceptron.cs (9)
48Console.WriteLine($"Label: {p.Label}, " 128Console.WriteLine($"Accuracy: {metrics.Accuracy:F2}"); 129Console.WriteLine($"AUC: {metrics.AreaUnderRocCurve:F2}"); 130Console.WriteLine($"F1 Score: {metrics.F1Score:F2}"); 131Console.WriteLine($"Negative Precision: " + 134Console.WriteLine($"Negative Recall: {metrics.NegativeRecall:F2}"); 135Console.WriteLine($"Positive Precision: " + 138Console.WriteLine($"Positive Recall: {metrics.PositiveRecall:F2}\n"); 139Console.WriteLine(metrics.ConfusionMatrix.GetFormattedConfusionTable());
Dynamic\Trainers\BinaryClassification\AveragedPerceptronWithOptions.cs (9)
59Console.WriteLine($"Label: {p.Label}, " 139Console.WriteLine($"Accuracy: {metrics.Accuracy:F2}"); 140Console.WriteLine($"AUC: {metrics.AreaUnderRocCurve:F2}"); 141Console.WriteLine($"F1 Score: {metrics.F1Score:F2}"); 142Console.WriteLine($"Negative Precision: " + 145Console.WriteLine($"Negative Recall: {metrics.NegativeRecall:F2}"); 146Console.WriteLine($"Positive Precision: " + 149Console.WriteLine($"Positive Recall: {metrics.PositiveRecall:F2}\n"); 150Console.WriteLine(metrics.ConfusionMatrix.GetFormattedConfusionTable());
Dynamic\Trainers\BinaryClassification\Calibrators\FixedPlatt.cs (2)
79Console.WriteLine("{0, -10} {1, -10}", "Score", value.Score); 87Console.WriteLine("{0, -10} {1, -10} {2, -10} {3, -10}", "Score",
Dynamic\Trainers\BinaryClassification\Calibrators\Isotonic.cs (2)
79Console.WriteLine("{0, -10} {1, -10}", "Score", value.Score); 87Console.WriteLine("{0, -10} {1, -10} {2, -10} {3, -10}", "Score",
Dynamic\Trainers\BinaryClassification\Calibrators\Naive.cs (2)
79Console.WriteLine("{0, -10} {1, -10}", "Score", value.Score); 87Console.WriteLine("{0, -10} {1, -10} {2, -10} {3, -10}", "Score",
Dynamic\Trainers\BinaryClassification\Calibrators\Platt.cs (2)
79Console.WriteLine("{0, -10} {1, -10}", "Score", value.Score); 87Console.WriteLine("{0, -10} {1, -10} {2, -10} {3, -10}", "Score",
Dynamic\Trainers\BinaryClassification\FactorizationMachine.cs (9)
56Console.WriteLine($"Label: {p.Label}, " 136Console.WriteLine($"Accuracy: {metrics.Accuracy:F2}"); 137Console.WriteLine($"AUC: {metrics.AreaUnderRocCurve:F2}"); 138Console.WriteLine($"F1 Score: {metrics.F1Score:F2}"); 139Console.WriteLine($"Negative Precision: " + 142Console.WriteLine($"Negative Recall: {metrics.NegativeRecall:F2}"); 143Console.WriteLine($"Positive Precision: " + 146Console.WriteLine($"Positive Recall: {metrics.PositiveRecall:F2}\n"); 147Console.WriteLine(metrics.ConfusionMatrix.GetFormattedConfusionTable());
Dynamic\Trainers\BinaryClassification\FastForest.cs (9)
51Console.WriteLine($"Label: {p.Label}, " 131Console.WriteLine($"Accuracy: {metrics.Accuracy:F2}"); 132Console.WriteLine($"AUC: {metrics.AreaUnderRocCurve:F2}"); 133Console.WriteLine($"F1 Score: {metrics.F1Score:F2}"); 134Console.WriteLine($"Negative Precision: " + 137Console.WriteLine($"Negative Recall: {metrics.NegativeRecall:F2}"); 138Console.WriteLine($"Positive Precision: " + 141Console.WriteLine($"Positive Recall: {metrics.PositiveRecall:F2}\n"); 142Console.WriteLine(metrics.ConfusionMatrix.GetFormattedConfusionTable());
Dynamic\Trainers\BinaryClassification\FastForestWithOptions.cs (9)
63Console.WriteLine($"Label: {p.Label}, " 143Console.WriteLine($"Accuracy: {metrics.Accuracy:F2}"); 144Console.WriteLine($"AUC: {metrics.AreaUnderRocCurve:F2}"); 145Console.WriteLine($"F1 Score: {metrics.F1Score:F2}"); 146Console.WriteLine($"Negative Precision: " + 149Console.WriteLine($"Negative Recall: {metrics.NegativeRecall:F2}"); 150Console.WriteLine($"Positive Precision: " + 153Console.WriteLine($"Positive Recall: {metrics.PositiveRecall:F2}\n"); 154Console.WriteLine(metrics.ConfusionMatrix.GetFormattedConfusionTable());
Dynamic\Trainers\BinaryClassification\FastTree.cs (9)
51Console.WriteLine($"Label: {p.Label}, " 134Console.WriteLine($"Accuracy: {metrics.Accuracy:F2}"); 135Console.WriteLine($"AUC: {metrics.AreaUnderRocCurve:F2}"); 136Console.WriteLine($"F1 Score: {metrics.F1Score:F2}"); 137Console.WriteLine($"Negative Precision: " + 140Console.WriteLine($"Negative Recall: {metrics.NegativeRecall:F2}"); 141Console.WriteLine($"Positive Precision: " + 144Console.WriteLine($"Positive Recall: {metrics.PositiveRecall:F2}\n"); 145Console.WriteLine(metrics.ConfusionMatrix.GetFormattedConfusionTable());
Dynamic\Trainers\BinaryClassification\FastTreeWithOptions.cs (9)
63Console.WriteLine($"Label: {p.Label}, " 146Console.WriteLine($"Accuracy: {metrics.Accuracy:F2}"); 147Console.WriteLine($"AUC: {metrics.AreaUnderRocCurve:F2}"); 148Console.WriteLine($"F1 Score: {metrics.F1Score:F2}"); 149Console.WriteLine($"Negative Precision: " + 152Console.WriteLine($"Negative Recall: {metrics.NegativeRecall:F2}"); 153Console.WriteLine($"Positive Precision: " + 156Console.WriteLine($"Positive Recall: {metrics.PositiveRecall:F2}\n"); 157Console.WriteLine(metrics.ConfusionMatrix.GetFormattedConfusionTable());
Dynamic\Trainers\BinaryClassification\FieldAwareFactorizationMachine.cs (11)
87Console.WriteLine($"Actual label: {dataPoint.Label}, " 195Console.WriteLine($"Accuracy: {metrics.Accuracy:F2}"); 196Console.WriteLine($"AUC: {metrics.AreaUnderRocCurve:F2}"); 197Console.WriteLine($"F1 Score: {metrics.F1Score:F2}"); 198Console.WriteLine($"Negative Precision: " + 201Console.WriteLine($"Negative Recall: {metrics.NegativeRecall:F2}"); 202Console.WriteLine($"Positive Precision: " + 205Console.WriteLine($"Positive Recall: {metrics.PositiveRecall:F2}"); 206Console.WriteLine($"Log Loss: {metrics.LogLoss:F2}"); 207Console.WriteLine($"Log Loss Reduction: {metrics.LogLossReduction:F2}"); 208Console.WriteLine($"Entropy: {metrics.Entropy:F2}");
Dynamic\Trainers\BinaryClassification\FieldAwareFactorizationMachineWithOptions.cs (11)
98Console.WriteLine($"Actual label: {dataPoint.Label}, " 206Console.WriteLine($"Accuracy: {metrics.Accuracy:F2}"); 207Console.WriteLine($"AUC: {metrics.AreaUnderRocCurve:F2}"); 208Console.WriteLine($"F1 Score: {metrics.F1Score:F2}"); 209Console.WriteLine($"Negative Precision: " + 212Console.WriteLine($"Negative Recall: {metrics.NegativeRecall:F2}"); 213Console.WriteLine($"Positive Precision: " + 216Console.WriteLine($"Positive Recall: {metrics.PositiveRecall:F2}"); 217Console.WriteLine($"Log Loss: {metrics.LogLoss:F2}"); 218Console.WriteLine($"Log Loss Reduction: {metrics.LogLossReduction:F2}"); 219Console.WriteLine($"Entropy: {metrics.Entropy:F2}");
Dynamic\Trainers\BinaryClassification\Gam.cs (4)
54Console.WriteLine($"Average prediction: {gam.Bias:0.00}"); 65Console.WriteLine(); 76Console.WriteLine($"Feature{i}"); 78Console.WriteLine(
Dynamic\Trainers\BinaryClassification\GamWithOptions.cs (4)
62Console.WriteLine($"Average prediction: {gam.Bias:0.00}"); 73Console.WriteLine(); 84Console.WriteLine($"Feature{i}"); 86Console.WriteLine(
Dynamic\Trainers\BinaryClassification\LbfgsLogisticRegression.cs (9)
48Console.WriteLine($"Label: {p.Label}, " 131Console.WriteLine($"Accuracy: {metrics.Accuracy:F2}"); 132Console.WriteLine($"AUC: {metrics.AreaUnderRocCurve:F2}"); 133Console.WriteLine($"F1 Score: {metrics.F1Score:F2}"); 134Console.WriteLine($"Negative Precision: " + 137Console.WriteLine($"Negative Recall: {metrics.NegativeRecall:F2}"); 138Console.WriteLine($"Positive Precision: " + 141Console.WriteLine($"Positive Recall: {metrics.PositiveRecall:F2}\n"); 142Console.WriteLine(metrics.ConfusionMatrix.GetFormattedConfusionTable());
Dynamic\Trainers\BinaryClassification\LbfgsLogisticRegressionWithOptions.cs (9)
57Console.WriteLine($"Label: {p.Label}, " 140Console.WriteLine($"Accuracy: {metrics.Accuracy:F2}"); 141Console.WriteLine($"AUC: {metrics.AreaUnderRocCurve:F2}"); 142Console.WriteLine($"F1 Score: {metrics.F1Score:F2}"); 143Console.WriteLine($"Negative Precision: " + 146Console.WriteLine($"Negative Recall: {metrics.NegativeRecall:F2}"); 147Console.WriteLine($"Positive Precision: " + 150Console.WriteLine($"Positive Recall: {metrics.PositiveRecall:F2}\n"); 151Console.WriteLine(metrics.ConfusionMatrix.GetFormattedConfusionTable());
Dynamic\Trainers\BinaryClassification\LdSvm.cs (9)
48Console.WriteLine($"Label: {p.Label}, " 128Console.WriteLine($"Accuracy: {metrics.Accuracy:F2}"); 129Console.WriteLine($"AUC: {metrics.AreaUnderRocCurve:F2}"); 130Console.WriteLine($"F1 Score: {metrics.F1Score:F2}"); 131Console.WriteLine($"Negative Precision: " + 134Console.WriteLine($"Negative Recall: {metrics.NegativeRecall:F2}"); 135Console.WriteLine($"Positive Precision: " + 138Console.WriteLine($"Positive Recall: {metrics.PositiveRecall:F2}\n"); 139Console.WriteLine(metrics.ConfusionMatrix.GetFormattedConfusionTable());
Dynamic\Trainers\BinaryClassification\LdSvmWithOptions.cs (9)
57Console.WriteLine($"Label: {p.Label}, " 137Console.WriteLine($"Accuracy: {metrics.Accuracy:F2}"); 138Console.WriteLine($"AUC: {metrics.AreaUnderRocCurve:F2}"); 139Console.WriteLine($"F1 Score: {metrics.F1Score:F2}"); 140Console.WriteLine($"Negative Precision: " + 143Console.WriteLine($"Negative Recall: {metrics.NegativeRecall:F2}"); 144Console.WriteLine($"Positive Precision: " + 147Console.WriteLine($"Positive Recall: {metrics.PositiveRecall:F2}\n"); 148Console.WriteLine(metrics.ConfusionMatrix.GetFormattedConfusionTable());
Dynamic\Trainers\BinaryClassification\LightGbm.cs (9)
51Console.WriteLine($"Label: {p.Label}, " 131Console.WriteLine($"Accuracy: {metrics.Accuracy:F2}"); 132Console.WriteLine($"AUC: {metrics.AreaUnderRocCurve:F2}"); 133Console.WriteLine($"F1 Score: {metrics.F1Score:F2}"); 134Console.WriteLine($"Negative Precision: " + 137Console.WriteLine($"Negative Recall: {metrics.NegativeRecall:F2}"); 138Console.WriteLine($"Positive Precision: " + 141Console.WriteLine($"Positive Recall: {metrics.PositiveRecall:F2}\n"); 142Console.WriteLine(metrics.ConfusionMatrix.GetFormattedConfusionTable());
Dynamic\Trainers\BinaryClassification\LightGbmWithOptions.cs (9)
62Console.WriteLine($"Label: {p.Label}, " 142Console.WriteLine($"Accuracy: {metrics.Accuracy:F2}"); 143Console.WriteLine($"AUC: {metrics.AreaUnderRocCurve:F2}"); 144Console.WriteLine($"F1 Score: {metrics.F1Score:F2}"); 145Console.WriteLine($"Negative Precision: " + 148Console.WriteLine($"Negative Recall: {metrics.NegativeRecall:F2}"); 149Console.WriteLine($"Positive Precision: " + 152Console.WriteLine($"Positive Recall: {metrics.PositiveRecall:F2}\n"); 153Console.WriteLine(metrics.ConfusionMatrix.GetFormattedConfusionTable());
Dynamic\Trainers\BinaryClassification\LinearSvm.cs (9)
48Console.WriteLine($"Label: {p.Label}, " 128Console.WriteLine($"Accuracy: {metrics.Accuracy:F2}"); 129Console.WriteLine($"AUC: {metrics.AreaUnderRocCurve:F2}"); 130Console.WriteLine($"F1 Score: {metrics.F1Score:F2}"); 131Console.WriteLine($"Negative Precision: " + 134Console.WriteLine($"Negative Recall: {metrics.NegativeRecall:F2}"); 135Console.WriteLine($"Positive Precision: " + 138Console.WriteLine($"Positive Recall: {metrics.PositiveRecall:F2}\n"); 139Console.WriteLine(metrics.ConfusionMatrix.GetFormattedConfusionTable());
Dynamic\Trainers\BinaryClassification\LinearSvmWithOptions.cs (9)
57Console.WriteLine($"Label: {p.Label}, " 137Console.WriteLine($"Accuracy: {metrics.Accuracy:F2}"); 138Console.WriteLine($"AUC: {metrics.AreaUnderRocCurve:F2}"); 139Console.WriteLine($"F1 Score: {metrics.F1Score:F2}"); 140Console.WriteLine($"Negative Precision: " + 143Console.WriteLine($"Negative Recall: {metrics.NegativeRecall:F2}"); 144Console.WriteLine($"Positive Precision: " + 147Console.WriteLine($"Positive Recall: {metrics.PositiveRecall:F2}\n"); 148Console.WriteLine(metrics.ConfusionMatrix.GetFormattedConfusionTable());
Dynamic\Trainers\BinaryClassification\PermutationFeatureImportance.cs (2)
56Console.WriteLine("Feature\tModel Weight\tChange in AUC" 61Console.WriteLine("{0}\t{1:0.00}\t{2:G4}\t{3:G4}",
Dynamic\Trainers\BinaryClassification\PermutationFeatureImportanceLoadFromDisk.cs (2)
55Console.WriteLine("Feature\tModel Weight\tChange in AUC" 60Console.WriteLine("{0}\t{1:0.00}\t{2:G4}\t{3:G4}",
Dynamic\Trainers\BinaryClassification\PriorTrainer.cs (9)
48Console.WriteLine($"Label: {p.Label}, " 128Console.WriteLine($"Accuracy: {metrics.Accuracy:F2}"); 129Console.WriteLine($"AUC: {metrics.AreaUnderRocCurve:F2}"); 130Console.WriteLine($"F1 Score: {metrics.F1Score:F2}"); 131Console.WriteLine($"Negative Precision: " + 134Console.WriteLine($"Negative Recall: {metrics.NegativeRecall:F2}"); 135Console.WriteLine($"Positive Precision: " + 138Console.WriteLine($"Positive Recall: {metrics.PositiveRecall:F2}\n"); 139Console.WriteLine(metrics.ConfusionMatrix.GetFormattedConfusionTable());
Dynamic\Trainers\BinaryClassification\SdcaLogisticRegression.cs (9)
56Console.WriteLine($"Label: {p.Label}, " 136Console.WriteLine($"Accuracy: {metrics.Accuracy:F2}"); 137Console.WriteLine($"AUC: {metrics.AreaUnderRocCurve:F2}"); 138Console.WriteLine($"F1 Score: {metrics.F1Score:F2}"); 139Console.WriteLine($"Negative Precision: " + 142Console.WriteLine($"Negative Recall: {metrics.NegativeRecall:F2}"); 143Console.WriteLine($"Positive Precision: " + 146Console.WriteLine($"Positive Recall: {metrics.PositiveRecall:F2}\n"); 147Console.WriteLine(metrics.ConfusionMatrix.GetFormattedConfusionTable());
Dynamic\Trainers\BinaryClassification\SdcaLogisticRegressionWithOptions.cs (9)
68Console.WriteLine($"Label: {p.Label}, " 148Console.WriteLine($"Accuracy: {metrics.Accuracy:F2}"); 149Console.WriteLine($"AUC: {metrics.AreaUnderRocCurve:F2}"); 150Console.WriteLine($"F1 Score: {metrics.F1Score:F2}"); 151Console.WriteLine($"Negative Precision: " + 154Console.WriteLine($"Negative Recall: {metrics.NegativeRecall:F2}"); 155Console.WriteLine($"Positive Precision: " + 158Console.WriteLine($"Positive Recall: {metrics.PositiveRecall:F2}\n"); 159Console.WriteLine(metrics.ConfusionMatrix.GetFormattedConfusionTable());
Dynamic\Trainers\BinaryClassification\SdcaNonCalibrated.cs (9)
56Console.WriteLine($"Label: {p.Label}, " 135Console.WriteLine($"Accuracy: {metrics.Accuracy:F2}"); 136Console.WriteLine($"AUC: {metrics.AreaUnderRocCurve:F2}"); 137Console.WriteLine($"F1 Score: {metrics.F1Score:F2}"); 138Console.WriteLine($"Negative Precision: " + 141Console.WriteLine($"Negative Recall: {metrics.NegativeRecall:F2}"); 142Console.WriteLine($"Positive Precision: " + 145Console.WriteLine($"Positive Recall: {metrics.PositiveRecall:F2}\n"); 146Console.WriteLine(metrics.ConfusionMatrix.GetFormattedConfusionTable());
Dynamic\Trainers\BinaryClassification\SdcaNonCalibratedWithOptions.cs (9)
70Console.WriteLine($"Label: {p.Label}, " 150Console.WriteLine($"Accuracy: {metrics.Accuracy:F2}"); 151Console.WriteLine($"AUC: {metrics.AreaUnderRocCurve:F2}"); 152Console.WriteLine($"F1 Score: {metrics.F1Score:F2}"); 153Console.WriteLine($"Negative Precision: " + 156Console.WriteLine($"Negative Recall: {metrics.NegativeRecall:F2}"); 157Console.WriteLine($"Positive Precision: " + 160Console.WriteLine($"Positive Recall: {metrics.PositiveRecall:F2}\n"); 161Console.WriteLine(metrics.ConfusionMatrix.GetFormattedConfusionTable());
Dynamic\Trainers\BinaryClassification\SgdCalibrated.cs (9)
48Console.WriteLine($"Label: {p.Label}, " 128Console.WriteLine($"Accuracy: {metrics.Accuracy:F2}"); 129Console.WriteLine($"AUC: {metrics.AreaUnderRocCurve:F2}"); 130Console.WriteLine($"F1 Score: {metrics.F1Score:F2}"); 131Console.WriteLine($"Negative Precision: " + 134Console.WriteLine($"Negative Recall: {metrics.NegativeRecall:F2}"); 135Console.WriteLine($"Positive Precision: " + 138Console.WriteLine($"Positive Recall: {metrics.PositiveRecall:F2}\n"); 139Console.WriteLine(metrics.ConfusionMatrix.GetFormattedConfusionTable());
Dynamic\Trainers\BinaryClassification\SgdCalibratedWithOptions.cs (9)
60Console.WriteLine($"Label: {p.Label}, " 140Console.WriteLine($"Accuracy: {metrics.Accuracy:F2}"); 141Console.WriteLine($"AUC: {metrics.AreaUnderRocCurve:F2}"); 142Console.WriteLine($"F1 Score: {metrics.F1Score:F2}"); 143Console.WriteLine($"Negative Precision: " + 146Console.WriteLine($"Negative Recall: {metrics.NegativeRecall:F2}"); 147Console.WriteLine($"Positive Precision: " + 150Console.WriteLine($"Positive Recall: {metrics.PositiveRecall:F2}\n"); 151Console.WriteLine(metrics.ConfusionMatrix.GetFormattedConfusionTable());
Dynamic\Trainers\BinaryClassification\SgdNonCalibrated.cs (9)
48Console.WriteLine($"Label: {p.Label}, " 128Console.WriteLine($"Accuracy: {metrics.Accuracy:F2}"); 129Console.WriteLine($"AUC: {metrics.AreaUnderRocCurve:F2}"); 130Console.WriteLine($"F1 Score: {metrics.F1Score:F2}"); 131Console.WriteLine($"Negative Precision: " + 134Console.WriteLine($"Negative Recall: {metrics.NegativeRecall:F2}"); 135Console.WriteLine($"Positive Precision: " + 138Console.WriteLine($"Positive Recall: {metrics.PositiveRecall:F2}\n"); 139Console.WriteLine(metrics.ConfusionMatrix.GetFormattedConfusionTable());
Dynamic\Trainers\BinaryClassification\SgdNonCalibratedWithOptions.cs (9)
57Console.WriteLine($"Label: {p.Label}, " 137Console.WriteLine($"Accuracy: {metrics.Accuracy:F2}"); 138Console.WriteLine($"AUC: {metrics.AreaUnderRocCurve:F2}"); 139Console.WriteLine($"F1 Score: {metrics.F1Score:F2}"); 140Console.WriteLine($"Negative Precision: " + 143Console.WriteLine($"Negative Recall: {metrics.NegativeRecall:F2}"); 144Console.WriteLine($"Positive Precision: " + 147Console.WriteLine($"Positive Recall: {metrics.PositiveRecall:F2}\n"); 148Console.WriteLine(metrics.ConfusionMatrix.GetFormattedConfusionTable());
Dynamic\Trainers\BinaryClassification\SymbolicSgdLogisticRegression.cs (9)
51Console.WriteLine($"Label: {p.Label}, " 131Console.WriteLine($"Accuracy: {metrics.Accuracy:F2}"); 132Console.WriteLine($"AUC: {metrics.AreaUnderRocCurve:F2}"); 133Console.WriteLine($"F1 Score: {metrics.F1Score:F2}"); 134Console.WriteLine($"Negative Precision: " + 137Console.WriteLine($"Negative Recall: {metrics.NegativeRecall:F2}"); 138Console.WriteLine($"Positive Precision: " + 141Console.WriteLine($"Positive Recall: {metrics.PositiveRecall:F2}\n"); 142Console.WriteLine(metrics.ConfusionMatrix.GetFormattedConfusionTable());
Dynamic\Trainers\BinaryClassification\SymbolicSgdLogisticRegressionWithOptions.cs (9)
60Console.WriteLine($"Label: {p.Label}, " 140Console.WriteLine($"Accuracy: {metrics.Accuracy:F2}"); 141Console.WriteLine($"AUC: {metrics.AreaUnderRocCurve:F2}"); 142Console.WriteLine($"F1 Score: {metrics.F1Score:F2}"); 143Console.WriteLine($"Negative Precision: " + 146Console.WriteLine($"Negative Recall: {metrics.NegativeRecall:F2}"); 147Console.WriteLine($"Positive Precision: " + 150Console.WriteLine($"Positive Recall: {metrics.PositiveRecall:F2}\n"); 151Console.WriteLine(metrics.ConfusionMatrix.GetFormattedConfusionTable());
Dynamic\Trainers\Clustering\KMeans.cs (7)
48Console.WriteLine( 52Console.WriteLine( 79Console.WriteLine( 83Console.WriteLine( 138Console.WriteLine($"Normalized Mutual Information: " + 141Console.WriteLine($"Average Distance: " + 144Console.WriteLine($"Davies Bouldin Index: " +
Dynamic\Trainers\Clustering\KMeansWithOptions.cs (7)
56Console.WriteLine( 60Console.WriteLine( 87Console.WriteLine( 91Console.WriteLine( 146Console.WriteLine($"Normalized Mutual Information: " + 149Console.WriteLine($"Average Distance: " + 152Console.WriteLine($"Davies Bouldin Index: " +
Dynamic\Trainers\MulticlassClassification\ImageClassification\ImageClassificationDefault.cs (17)
72Console.WriteLine("*** Training the image classification model " + 88Console.WriteLine("Training with transfer learning finished."); 111Console.WriteLine("Prediction on a single image finished."); 113Console.WriteLine("Press any key to finish"); 114Console.ReadKey(); 121Console.WriteLine(e.Message); 147Console.WriteLine($"Scores : [{string.Join(",", prediction.Score)}], " + 155Console.WriteLine("Making bulk predictions and evaluating model's " + 162Console.WriteLine($"Micro-accuracy: {metrics.MicroAccuracy}," + 165Console.WriteLine("Predicting and Evaluation complete."); 266Console.WriteLine($"{relativeFilePath} already exists."); 270Console.WriteLine($"Downloading {relativeFilePath}"); 282Console.WriteLine(""); 283Console.WriteLine($"Downloaded {relativeFilePath}"); 298Console.WriteLine($"Extracting."); 302Console.WriteLine(""); 303Console.WriteLine("Extracting is completed.");
Dynamic\Trainers\MulticlassClassification\ImageClassification\LearningRateSchedulingCifarResnetTransferLearning.cs (18)
90MetricsCallback = (metrics) => Console.WriteLine(metrics), 109Console.WriteLine("*** Training the image classification model " + 123Console.WriteLine("Training with transfer learning finished."); 145Console.WriteLine("Prediction on a single image finished."); 147Console.WriteLine("Press any key to finish"); 148Console.ReadKey(); 173Console.WriteLine($"Scores : [{string.Join(",", prediction.Score)}], " + 181Console.WriteLine("Making bulk predictions and evaluating model's " + 188Console.WriteLine($"Micro-accuracy: {metrics.MicroAccuracy}," + 191Console.WriteLine("Predicting and Evaluation complete."); 298Console.WriteLine($"{relativeFilePath} already exists."); 302Console.WriteLine($"Downloading {relativeFilePath}"); 314Console.WriteLine(""); 315Console.WriteLine($"Downloaded {relativeFilePath}"); 330Console.WriteLine($"Extracting."); 339Console.Write("."); 343Console.WriteLine(""); 344Console.WriteLine("Extracting is completed.");
Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningEarlyStopping.cs (18)
86MetricsCallback = (metrics) => Console.WriteLine(metrics), 96Console.WriteLine("*** Training the image classification model " + 113Console.WriteLine("Training with transfer learning finished."); 140Console.WriteLine("Prediction on a single image finished."); 142Console.WriteLine("Press any key to finish"); 143Console.ReadKey(); 169Console.WriteLine($"ImageFile : " + 179Console.WriteLine("Making bulk predictions and evaluating model's " + 186Console.WriteLine($"Micro-accuracy: {metrics.MicroAccuracy}," + 189Console.WriteLine("Predicting and Evaluation complete."); 254Console.WriteLine($"{relativeFilePath} already exists."); 258Console.WriteLine($"Downloading {relativeFilePath}"); 270Console.WriteLine(""); 271Console.WriteLine($"Downloaded {relativeFilePath}"); 286Console.WriteLine($"Extracting."); 295Console.Write("."); 299Console.WriteLine(""); 300Console.WriteLine("Extracting is completed.");
Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningTrainTestSplit.cs (18)
75MetricsCallback = (metrics) => Console.WriteLine(metrics), 89Console.WriteLine("*** Training the image classification model " + 105Console.WriteLine("Training with transfer learning finished."); 128Console.WriteLine("Prediction on a single image finished."); 130Console.WriteLine("Press any key to finish"); 131Console.ReadKey(); 156Console.WriteLine($"Scores : [{string.Join(",", prediction.Score)}], " + 164Console.WriteLine("Making bulk predictions and evaluating model's " + 171Console.WriteLine($"Micro-accuracy: {metrics.MicroAccuracy}," + 174Console.WriteLine("Predicting and Evaluation complete."); 275Console.WriteLine($"{relativeFilePath} already exists."); 279Console.WriteLine($"Downloading {relativeFilePath}"); 291Console.WriteLine(""); 292Console.WriteLine($"Downloaded {relativeFilePath}"); 307Console.WriteLine($"Extracting."); 316Console.Write("."); 320Console.WriteLine(""); 321Console.WriteLine("Extracting is completed.");
Dynamic\Trainers\MulticlassClassification\LbfgsMaximumEntropy.cs (6)
53Console.WriteLine($"Label: {p.Label}, " + 132Console.WriteLine($"Micro Accuracy: {metrics.MicroAccuracy:F2}"); 133Console.WriteLine($"Macro Accuracy: {metrics.MacroAccuracy:F2}"); 134Console.WriteLine($"Log Loss: {metrics.LogLoss:F2}"); 135Console.WriteLine( 138Console.WriteLine(metrics.ConfusionMatrix.GetFormattedConfusionTable());
Dynamic\Trainers\MulticlassClassification\LbfgsMaximumEntropyWithOptions.cs (6)
61Console.WriteLine($"Label: {p.Label}, " + 140Console.WriteLine($"Micro Accuracy: {metrics.MicroAccuracy:F2}"); 141Console.WriteLine($"Macro Accuracy: {metrics.MacroAccuracy:F2}"); 142Console.WriteLine($"Log Loss: {metrics.LogLoss:F2}"); 143Console.WriteLine( 146Console.WriteLine(metrics.ConfusionMatrix.GetFormattedConfusionTable());
Dynamic\Trainers\MulticlassClassification\LightGbm.cs (6)
56Console.WriteLine($"Label: {p.Label}, " + 135Console.WriteLine($"Micro Accuracy: {metrics.MicroAccuracy:F2}"); 136Console.WriteLine($"Macro Accuracy: {metrics.MacroAccuracy:F2}"); 137Console.WriteLine($"Log Loss: {metrics.LogLoss:F2}"); 138Console.WriteLine( 141Console.WriteLine(metrics.ConfusionMatrix.GetFormattedConfusionTable());
Dynamic\Trainers\MulticlassClassification\LightGbmWithOptions.cs (6)
66Console.WriteLine($"Label: {p.Label}, " + 145Console.WriteLine($"Micro Accuracy: {metrics.MicroAccuracy:F2}"); 146Console.WriteLine($"Macro Accuracy: {metrics.MacroAccuracy:F2}"); 147Console.WriteLine($"Log Loss: {metrics.LogLoss:F2}"); 148Console.WriteLine( 151Console.WriteLine(metrics.ConfusionMatrix.GetFormattedConfusionTable());
Dynamic\Trainers\MulticlassClassification\LogLossPerClass.cs (1)
55Console.WriteLine($"LogLoss for label " +
Dynamic\Trainers\MulticlassClassification\NaiveBayes.cs (6)
59Console.WriteLine($"Label: {p.Label}, " + 140Console.WriteLine($"Micro Accuracy: {metrics.MicroAccuracy:F2}"); 141Console.WriteLine($"Macro Accuracy: {metrics.MacroAccuracy:F2}"); 142Console.WriteLine($"Log Loss: {metrics.LogLoss:F2}"); 143Console.WriteLine( 146Console.WriteLine(metrics.ConfusionMatrix.GetFormattedConfusionTable());
Dynamic\Trainers\MulticlassClassification\OneVersusAll.cs (6)
54Console.WriteLine($"Label: {p.Label}, " + 133Console.WriteLine($"Micro Accuracy: {metrics.MicroAccuracy:F2}"); 134Console.WriteLine($"Macro Accuracy: {metrics.MacroAccuracy:F2}"); 135Console.WriteLine($"Log Loss: {metrics.LogLoss:F2}"); 136Console.WriteLine( 139Console.WriteLine(metrics.ConfusionMatrix.GetFormattedConfusionTable());
Dynamic\Trainers\MulticlassClassification\PairwiseCoupling.cs (6)
54Console.WriteLine($"Label: {p.Label}, " + 133Console.WriteLine($"Micro Accuracy: {metrics.MicroAccuracy:F2}"); 134Console.WriteLine($"Macro Accuracy: {metrics.MacroAccuracy:F2}"); 135Console.WriteLine($"Log Loss: {metrics.LogLoss:F2}"); 136Console.WriteLine( 139Console.WriteLine(metrics.ConfusionMatrix.GetFormattedConfusionTable());
Dynamic\Trainers\MulticlassClassification\PermutationFeatureImportance.cs (2)
58Console.WriteLine("Feature\tChange in MicroAccuracy\t95% Confidence in " 66Console.WriteLine("{0}\t{1:G4}\t{2:G4}",
Dynamic\Trainers\MulticlassClassification\PermutationFeatureImportanceLoadFromDisk.cs (2)
66Console.WriteLine("Feature\tChange in MicroAccuracy\t95% Confidence in " 74Console.WriteLine("{0}\t{1:G4}\t{2:G4}",
Dynamic\Trainers\MulticlassClassification\SdcaMaximumEntropy.cs (6)
61Console.WriteLine($"Label: {p.Label}, " + 139Console.WriteLine($"Micro Accuracy: {metrics.MicroAccuracy:F2}"); 140Console.WriteLine($"Macro Accuracy: {metrics.MacroAccuracy:F2}"); 141Console.WriteLine($"Log Loss: {metrics.LogLoss:F2}"); 142Console.WriteLine( 145Console.WriteLine(metrics.ConfusionMatrix.GetFormattedConfusionTable());
Dynamic\Trainers\MulticlassClassification\SdcaMaximumEntropyWithOptions.cs (6)
70Console.WriteLine($"Label: {p.Label}, " + 149Console.WriteLine($"Micro Accuracy: {metrics.MicroAccuracy:F2}"); 150Console.WriteLine($"Macro Accuracy: {metrics.MacroAccuracy:F2}"); 151Console.WriteLine($"Log Loss: {metrics.LogLoss:F2}"); 152Console.WriteLine( 155Console.WriteLine(metrics.ConfusionMatrix.GetFormattedConfusionTable());
Dynamic\Trainers\MulticlassClassification\SdcaNonCalibrated.cs (6)
61Console.WriteLine($"Label: {p.Label}, " + 140Console.WriteLine($"Micro Accuracy: {metrics.MicroAccuracy:F2}"); 141Console.WriteLine($"Macro Accuracy: {metrics.MacroAccuracy:F2}"); 142Console.WriteLine($"Log Loss: {metrics.LogLoss:F2}"); 143Console.WriteLine( 146Console.WriteLine(metrics.ConfusionMatrix.GetFormattedConfusionTable());
Dynamic\Trainers\MulticlassClassification\SdcaNonCalibratedWithOptions.cs (6)
70Console.WriteLine($"Label: {p.Label}, " + 149Console.WriteLine($"Micro Accuracy: {metrics.MicroAccuracy:F2}"); 150Console.WriteLine($"Macro Accuracy: {metrics.MacroAccuracy:F2}"); 151Console.WriteLine($"Log Loss: {metrics.LogLoss:F2}"); 152Console.WriteLine( 155Console.WriteLine(metrics.ConfusionMatrix.GetFormattedConfusionTable());
Dynamic\Trainers\Ranking\FastTree.cs (3)
53Console.WriteLine($"Label: {p.Label}, Score: {p.Score}"); 116Console.WriteLine("DCG: " + string.Join(", ", 120Console.WriteLine("NDCG: " + string.Join(", ",
Dynamic\Trainers\Ranking\FastTreeWithOptions.cs (3)
67Console.WriteLine($"Label: {p.Label}, Score: {p.Score}"); 130Console.WriteLine("DCG: " + string.Join(", ", 133Console.WriteLine("NDCG: " + string.Join(", ",
Dynamic\Trainers\Ranking\LightGbm.cs (3)
53Console.WriteLine($"Label: {p.Label}, Score: {p.Score}"); 116Console.WriteLine("DCG: " + string.Join(", ", 119Console.WriteLine("NDCG: " + string.Join(", ",
Dynamic\Trainers\Ranking\LightGbmWithOptions.cs (3)
68Console.WriteLine($"Label: {p.Label}, Score: {p.Score}"); 131Console.WriteLine("DCG: " + string.Join(", ", 134Console.WriteLine("NDCG: " + string.Join(", ",
Dynamic\Trainers\Ranking\PermutationFeatureImportance.cs (2)
61Console.WriteLine("Feature\tChange in NDCG@1\t95% Confidence in the" + 67Console.WriteLine("{0}\t{1:G4}\t{2:G4}",
Dynamic\Trainers\Ranking\PermutationFeatureImportanceLoadFromDisk.cs (2)
68Console.WriteLine("Feature\tChange in NDCG@1\t95% Confidence in the" + 74Console.WriteLine("{0}\t{1:G4}\t{2:G4}",
Dynamic\Trainers\Recommendation\MatrixFactorization.cs (5)
53Console.WriteLine($"Actual value: {p.Value:F3}," + 127Console.WriteLine("Mean Absolute Error: " + metrics.MeanAbsoluteError); 128Console.WriteLine("Mean Squared Error: " + metrics.MeanSquaredError); 129Console.WriteLine("Root Mean Squared Error: " + 132Console.WriteLine("RSquared: " + metrics.RSquared);
Dynamic\Trainers\Recommendation\MatrixFactorizationWithOptions.cs (5)
77Console.WriteLine($"Actual value: {p.Value:F3}," + 151Console.WriteLine("Mean Absolute Error: " + metrics.MeanAbsoluteError); 152Console.WriteLine("Mean Squared Error: " + metrics.MeanSquaredError); 153Console.WriteLine("Root Mean Squared Error: " + 156Console.WriteLine("RSquared: " + metrics.RSquared);
Dynamic\Trainers\Recommendation\OneClassMatrixFactorizationWithOptions.cs (3)
82Console.WriteLine($"Predicted value at row " + 116Console.WriteLine("Top 2 predictions on the 1st row:"); 118Console.WriteLine($"Predicted value at row " +
Dynamic\Trainers\Regression\FastForest.cs (5)
52Console.WriteLine($"Label: {p.Label:F3}, Prediction: {p.Score:F3}"); 110Console.WriteLine("Mean Absolute Error: " + metrics.MeanAbsoluteError); 111Console.WriteLine("Mean Squared Error: " + metrics.MeanSquaredError); 112Console.WriteLine( 115Console.WriteLine("RSquared: " + metrics.RSquared);
Dynamic\Trainers\Regression\FastForestWithOptions.cs (5)
65Console.WriteLine($"Label: {p.Label:F3}, Prediction: {p.Score:F3}"); 123Console.WriteLine("Mean Absolute Error: " + metrics.MeanAbsoluteError); 124Console.WriteLine("Mean Squared Error: " + metrics.MeanSquaredError); 125Console.WriteLine( 128Console.WriteLine("RSquared: " + metrics.RSquared);
Dynamic\Trainers\Regression\FastTree.cs (5)
52Console.WriteLine($"Label: {p.Label:F3}, Prediction: {p.Score:F3}"); 110Console.WriteLine("Mean Absolute Error: " + metrics.MeanAbsoluteError); 111Console.WriteLine("Mean Squared Error: " + metrics.MeanSquaredError); 112Console.WriteLine( 115Console.WriteLine("RSquared: " + metrics.RSquared);
Dynamic\Trainers\Regression\FastTreeTweedie.cs (5)
52Console.WriteLine($"Label: {p.Label:F3}, Prediction: {p.Score:F3}"); 110Console.WriteLine("Mean Absolute Error: " + metrics.MeanAbsoluteError); 111Console.WriteLine("Mean Squared Error: " + metrics.MeanSquaredError); 112Console.WriteLine( 115Console.WriteLine("RSquared: " + metrics.RSquared);
Dynamic\Trainers\Regression\FastTreeTweedieWithOptions.cs (5)
67Console.WriteLine($"Label: {p.Label:F3}, Prediction: {p.Score:F3}"); 125Console.WriteLine("Mean Absolute Error: " + metrics.MeanAbsoluteError); 126Console.WriteLine("Mean Squared Error: " + metrics.MeanSquaredError); 127Console.WriteLine( 130Console.WriteLine("RSquared: " + metrics.RSquared);
Dynamic\Trainers\Regression\FastTreeWithOptions.cs (5)
68Console.WriteLine($"Label: {p.Label:F3}, Prediction: {p.Score:F3}"); 126Console.WriteLine("Mean Absolute Error: " + metrics.MeanAbsoluteError); 127Console.WriteLine("Mean Squared Error: " + metrics.MeanSquaredError); 128Console.WriteLine( 131Console.WriteLine("RSquared: " + metrics.RSquared);
Dynamic\Trainers\Regression\Gam.cs (5)
52Console.WriteLine($"Label: {p.Label:F3}, Prediction: {p.Score:F3}"); 110Console.WriteLine("Mean Absolute Error: " + metrics.MeanAbsoluteError); 111Console.WriteLine("Mean Squared Error: " + metrics.MeanSquaredError); 112Console.WriteLine( 115Console.WriteLine("RSquared: " + metrics.RSquared);
Dynamic\Trainers\Regression\GamAdvanced.cs (4)
54Console.WriteLine($"Average prediction: {gam.Bias:0.00}"); 65Console.WriteLine(); 76Console.WriteLine($"Feature{i}"); 78Console.WriteLine(
Dynamic\Trainers\Regression\GamWithOptions.cs (5)
63Console.WriteLine($"Label: {p.Label:F3}, Prediction: {p.Score:F3}"); 121Console.WriteLine("Mean Absolute Error: " + metrics.MeanAbsoluteError); 122Console.WriteLine("Mean Squared Error: " + metrics.MeanSquaredError); 123Console.WriteLine( 126Console.WriteLine("RSquared: " + metrics.RSquared);
Dynamic\Trainers\Regression\GamWithOptionsAdvanced.cs (4)
62Console.WriteLine($"Average prediction: {gam.Bias:0.00}"); 73Console.WriteLine(); 84Console.WriteLine($"Feature{i}"); 86Console.WriteLine(
Dynamic\Trainers\Regression\LbfgsPoissonRegression.cs (5)
50Console.WriteLine($"Label: {p.Label:F3}, Prediction: {p.Score:F3}"); 108Console.WriteLine("Mean Absolute Error: " + metrics.MeanAbsoluteError); 109Console.WriteLine("Mean Squared Error: " + metrics.MeanSquaredError); 110Console.WriteLine( 113Console.WriteLine("RSquared: " + metrics.RSquared);
Dynamic\Trainers\Regression\LbfgsPoissonRegressionWithOptions.cs (5)
64Console.WriteLine($"Label: {p.Label:F3}, Prediction: {p.Score:F3}"); 122Console.WriteLine("Mean Absolute Error: " + metrics.MeanAbsoluteError); 123Console.WriteLine("Mean Squared Error: " + metrics.MeanSquaredError); 124Console.WriteLine( 127Console.WriteLine("RSquared: " + metrics.RSquared);
Dynamic\Trainers\Regression\LightGbm.cs (5)
53Console.WriteLine($"Label: {p.Label:F3}, Prediction: {p.Score:F3}"); 111Console.WriteLine("Mean Absolute Error: " + metrics.MeanAbsoluteError); 112Console.WriteLine("Mean Squared Error: " + metrics.MeanSquaredError); 113Console.WriteLine( 116Console.WriteLine("RSquared: " + metrics.RSquared);
Dynamic\Trainers\Regression\LightGbmAdvanced.cs (6)
55Console.WriteLine($"weight 0 - {weightsValues[0]}"); 57Console.WriteLine($"weight 5 - {weightsValues[5]}"); 77Console.WriteLine("Mean Absolute Error: " + metrics.MeanAbsoluteError); 78Console.WriteLine("Mean Squared Error: " + metrics.MeanSquaredError); 79Console.WriteLine( 82Console.WriteLine("RSquared: " + metrics.RSquared);
Dynamic\Trainers\Regression\LightGbmWithOptions.cs (5)
72Console.WriteLine($"Label: {p.Label:F3}, Prediction: {p.Score:F3}"); 130Console.WriteLine("Mean Absolute Error: " + metrics.MeanAbsoluteError); 131Console.WriteLine("Mean Squared Error: " + metrics.MeanSquaredError); 132Console.WriteLine( 135Console.WriteLine("RSquared: " + metrics.RSquared);
Dynamic\Trainers\Regression\LightGbmWithOptionsAdvanced.cs (6)
64Console.WriteLine($"weight 0 - {weightsValues[0]}"); 66Console.WriteLine($"weight 5 - {weightsValues[5]}"); 86Console.WriteLine("Mean Absolute Error: " + metrics.MeanAbsoluteError); 87Console.WriteLine("Mean Squared Error: " + metrics.MeanSquaredError); 88Console.WriteLine( 91Console.WriteLine("RSquared: " + metrics.RSquared);
Dynamic\Trainers\Regression\OnlineGradientDescent.cs (5)
49Console.WriteLine($"Label: {p.Label:F3}, Prediction: {p.Score:F3}"); 99Console.WriteLine("Mean Absolute Error: " + metrics.MeanAbsoluteError); 100Console.WriteLine("Mean Squared Error: " + metrics.MeanSquaredError); 101Console.WriteLine( 104Console.WriteLine("RSquared: " + metrics.RSquared);
Dynamic\Trainers\Regression\OnlineGradientDescentWithOptions.cs (5)
64Console.WriteLine($"Label: {p.Label:F3}, Prediction: {p.Score:F3}"); 115Console.WriteLine("Mean Absolute Error: " + metrics.MeanAbsoluteError); 116Console.WriteLine("Mean Squared Error: " + metrics.MeanSquaredError); 117Console.WriteLine( 120Console.WriteLine("RSquared: " + metrics.RSquared);
Dynamic\Trainers\Regression\OrdinaryLeastSquares.cs (5)
49Console.WriteLine($"Label: {p.Label:F3}, Prediction: {p.Score:F3}"); 107Console.WriteLine("Mean Absolute Error: " + metrics.MeanAbsoluteError); 108Console.WriteLine("Mean Squared Error: " + metrics.MeanSquaredError); 109Console.WriteLine( 112Console.WriteLine("RSquared: " + metrics.RSquared);
Dynamic\Trainers\Regression\OrdinaryLeastSquaresAdvanced.cs (6)
59Console.WriteLine($"weight 0 - {weightsValues[0]}"); 61Console.WriteLine($"weight 3 - {weightsValues[3]}"); 78Console.WriteLine("Mean Absolute Error: " + metrics.MeanAbsoluteError); 79Console.WriteLine("Mean Squared Error: " + metrics.MeanSquaredError); 80Console.WriteLine( 83Console.WriteLine("RSquared: " + metrics.RSquared);
Dynamic\Trainers\Regression\OrdinaryLeastSquaresWithOptions.cs (5)
61Console.WriteLine($"Label: {p.Label:F3}, Prediction: {p.Score:F3}"); 119Console.WriteLine("Mean Absolute Error: " + metrics.MeanAbsoluteError); 120Console.WriteLine("Mean Squared Error: " + metrics.MeanSquaredError); 121Console.WriteLine( 124Console.WriteLine("RSquared: " + metrics.RSquared);
Dynamic\Trainers\Regression\OrdinaryLeastSquaresWithOptionsAdvanced.cs (6)
63Console.WriteLine($"weight 0 - {weightsValues[0]}"); 65Console.WriteLine($"weight 3 - {weightsValues[3]}"); 82Console.WriteLine("Mean Absolute Error: " + metrics.MeanAbsoluteError); 83Console.WriteLine("Mean Squared Error: " + metrics.MeanSquaredError); 84Console.WriteLine( 87Console.WriteLine("RSquared: " + metrics.RSquared);
Dynamic\Trainers\Regression\PermutationFeatureImportance.cs (2)
63Console.WriteLine("Feature\tModel Weight\tChange in RMSE\t95%" + 71Console.WriteLine("{0}\t{1:0.00}\t{2:G4}\t{3:G4}",
Dynamic\Trainers\Regression\PermutationFeatureImportanceLoadFromDisk.cs (2)
70Console.WriteLine("Feature\tModel Weight\tChange in RMSE\t95%" + 78Console.WriteLine("{0}\t{1:0.00}\t{2:G4}\t{3:G4}",
Dynamic\Trainers\Regression\Sdca.cs (5)
49Console.WriteLine($"Label: {p.Label:F3}, Prediction: {p.Score:F3}"); 107Console.WriteLine("Mean Absolute Error: " + metrics.MeanAbsoluteError); 108Console.WriteLine("Mean Squared Error: " + metrics.MeanSquaredError); 109Console.WriteLine( 112Console.WriteLine("RSquared: " + metrics.RSquared);
Dynamic\Trainers\Regression\SdcaWithOptions.cs (5)
65Console.WriteLine($"Label: {p.Label:F3}, Prediction: {p.Score:F3}"); 123Console.WriteLine("Mean Absolute Error: " + metrics.MeanAbsoluteError); 124Console.WriteLine("Mean Squared Error: " + metrics.MeanSquaredError); 125Console.WriteLine( 128Console.WriteLine("RSquared: " + metrics.RSquared);
Dynamic\Transforms\ApplyOnnxModel.cs (2)
41Console.WriteLine("Class #" + numClasses++ + " score = " + 44Console.WriteLine(new string('-', 10));
Dynamic\Transforms\ApplyONNXModelWithInMemoryImages.cs (2)
67Console.WriteLine("The probability of being the first class is " + 70Console.WriteLine($"The probability of being the last class is " +
Dynamic\Transforms\ApproximatedKernelMap.cs (1)
43Console.WriteLine(string.Join(", ", row.Select(x => x.ToString(
Dynamic\Transforms\CalculateFeatureContribution.cs (5)
41Console.WriteLine($"Linear Model Parameters"); 42Console.WriteLine("Bias: " + linearModel.Model.Bias + " Feature1: " + 72Console.WriteLine("Label: " + prediction.Label + " Prediction: " + 75Console.WriteLine("Feature1: " + prediction.Features[0] + 78Console.WriteLine("Feature Contributions: " + prediction
Dynamic\Transforms\CalculateFeatureContributionCalibrated.cs (5)
42Console.WriteLine($"Linear Model Parameters"); 43Console.WriteLine("Bias: {0} Feature1: {1} Feature2: {2}", 74Console.WriteLine("Label: " + prediction.Label + " Prediction-Score: " + 78Console.WriteLine("Feature1: " + prediction.Features[0] + " Feature2: " 81Console.WriteLine("Feature Contributions: " + prediction
Dynamic\Transforms\Categorical\OneHotEncoding.cs (4)
58Console.WriteLine( 65Console.WriteLine(element); 83Console.Write($"{row[i]}\t"); 85Console.WriteLine();
Dynamic\Transforms\Categorical\OneHotEncodingMultiColumn.cs (2)
45Console.WriteLine( 51Console.WriteLine("{0}\t\t\t{1}", string.Join(" ", item.Education),
Dynamic\Transforms\Categorical\OneHotHashEncoding.cs (4)
58Console.WriteLine( 65Console.WriteLine(element); 83Console.Write($"{row[i]}\t"); 84Console.WriteLine();
Dynamic\Transforms\Categorical\OneHotHashEncodingMultiColumn.cs (2)
46Console.WriteLine( 52Console.WriteLine("{0}\t\t\t{1}", string.Join(" ", item.Education),
Dynamic\Transforms\Concatenate.cs (2)
64Console.WriteLine($"Features column obtained post-transformation."); 66Console.WriteLine(string.Join(" ", featureRow.Features));
Dynamic\Transforms\Conversion\ConvertType.cs (1)
37Console.WriteLine("A:{0,-10} Aconv:{1}", item.Survived,
Dynamic\Transforms\Conversion\ConvertTypeMultiColumn.cs (2)
61Console.WriteLine("Converted1\t Converted2\t Converted3\t Converted4"); 63Console.WriteLine($"\t{item.Converted1}\t {item.Converted2}\t\t " +
Dynamic\Transforms\Conversion\Hash.cs (3)
57Console.WriteLine("Category CategoryHashed\t Age\t AgeHashed"); 59Console.WriteLine($"{item.Category}\t {item.CategoryHashed}\t\t " + 87Console.WriteLine($"The original value of the {indices[i]} " +
Dynamic\Transforms\Conversion\HashWithOptions.cs (3)
71Console.WriteLine("Category CategoryHashed\t Age\t AgeHashed"); 73Console.WriteLine($"{item.Category}\t {item.CategoryHashed}\t\t " + 101Console.WriteLine($"The original value of the {indices[i]} " +
Dynamic\Transforms\Conversion\KeyToValueToKey.cs (6)
64Console.WriteLine($"Keys"); 66Console.WriteLine($"{string.Join(',', dataRow.Keys)}"); 74Console.WriteLine($"Keys"); 76Console.WriteLine($"{string.Join(',', dataRow.Keys)}"); 98Console.Write($"{value} "); 99Console.WriteLine("");
Dynamic\Transforms\Conversion\MapKeyToBinaryVector.cs (2)
46Console.WriteLine($" Timeframe TimeframeVector"); 48Console.WriteLine($"{featureRow.Timeframe}\t\t\t" +
Dynamic\Transforms\Conversion\MapKeyToValueMultiColumn.cs (2)
63Console.WriteLine($"Label LabelOriginalValue PredictedLabel " + 67Console.WriteLine($"{row.Label}\t\t{row.LabelOriginalValue}\t\t\t" +
Dynamic\Transforms\Conversion\MapKeyToVector.cs (2)
59Console.WriteLine("Timeframe TimeframeVector PartsCount " + 63Console.WriteLine(featureRow.Timeframe + " " +
Dynamic\Transforms\Conversion\MapKeyToVectorMultiColumn.cs (2)
47Console.WriteLine($" Timeframe TimeframeVector " + 51Console.WriteLine(featureRow.Timeframe + " " +
Dynamic\Transforms\Conversion\MapValue.cs (2)
74Console.WriteLine(" Timeframe TimeframeCategory Label Score " + 78Console.WriteLine($"{featureRow.Timeframe}\t\t" +
Dynamic\Transforms\Conversion\MapValueIdvLookup.cs (2)
57Console.WriteLine($" Price PriceCategory"); 59Console.WriteLine($"{featureRow.Price}\t\t" +
Dynamic\Transforms\Conversion\MapValueToArray.cs (2)
55Console.WriteLine($"Timeframe Features"); 57Console.WriteLine($"{featureRow.Timeframe}\t\t " +
Dynamic\Transforms\Conversion\MapValueToKeyMultiColumn.cs (4)
45Console.WriteLine($" StudyTime StudyTimeCategory Course " + 49Console.WriteLine($"{featureRow.StudyTime}\t\t" + 96Console.WriteLine($" StudyTime StudyTimeCategory " + 100Console.WriteLine($"{featureRow.StudyTime}\t\t" +
Dynamic\Transforms\CopyColumns.cs (2)
61Console.WriteLine($"Label and ImageId columns obtained " + 65Console.WriteLine($"Label: {row.Label} ImageId: {row.ImageId}");
Dynamic\Transforms\CustomMapping.cs (2)
50Console.WriteLine("Age\t IsUnderThirty"); 52Console.WriteLine($"{row.Age}\t {row.IsUnderThirty}");
Dynamic\Transforms\CustomMappingSaveAndLoad.cs (2)
66Console.WriteLine("Age\tIsUnderThirty"); 68Console.WriteLine($"{row.Age}\t {row.IsUnderThirty}");
Dynamic\Transforms\CustomMappingWithInMemoryCustomType.cs (2)
40Console.WriteLine("We got a super alien with name " + firstAlien.Name + 54Console.Write("We got a super alien with name " + superAlien.Name +
Dynamic\Transforms\DropColumns.cs (3)
61Console.WriteLine($"ExtraColumn is not available, so an exception" + 74Console.WriteLine($"The columns we didn't drop are still available."); 76Console.WriteLine($"Age: {row.Age} Gender: {row.Gender} " +
Dynamic\Transforms\Expression.cs (8)
51Console.WriteLine($"Features column obtained post-transformation."); 54Console.Write(string.Join(" ", featureRow.Expr1)); 55Console.Write(" "); 56Console.Write(string.Join(" ", featureRow.Expr2)); 57Console.Write(" "); 58Console.Write(string.Join(" ", featureRow.Expr3)); 59Console.Write(" "); 60Console.WriteLine(featureRow.Expr4);
Dynamic\Transforms\FeatureSelection\SelectFeaturesBasedOnCount.cs (4)
20Console.WriteLine($"NumericVector StringVector"); 22Console.WriteLine("{0,-25} {1,-25}", string.Join(",", item 50Console.WriteLine($"NumericVector StringVector"); 52Console.WriteLine("{0,-25} {1,-25}", string.Join(",", item.
Dynamic\Transforms\FeatureSelection\SelectFeaturesBasedOnCountMultiColumn.cs (4)
20Console.WriteLine($"NumericVector StringVector"); 22Console.WriteLine("{0,-25} {1,-25}", string.Join(",", item. 50Console.WriteLine($"NumericVector StringVector"); 52Console.WriteLine("{0,-25} {1,-25}", string.Join(",", item
Dynamic\Transforms\FeatureSelection\SelectFeaturesBasedOnMutualInformation.cs (4)
20Console.WriteLine($"Label NumericVector"); 22Console.WriteLine("{0,-25} {1,-25}", item.Label, string.Join(",", 48Console.WriteLine($"NumericVector"); 50Console.WriteLine("{0,-25}", string.Join(",", item.NumericVector));
Dynamic\Transforms\FeatureSelection\SelectFeaturesBasedOnMutualInformationMultiColumn.cs (4)
20Console.WriteLine($"NumericVectorA NumericVectorB"); 22Console.WriteLine("{0,-25} {1,-25}", string.Join(",", item 51Console.WriteLine($"NumericVectorA NumericVectorB"); 53Console.WriteLine("{0,-25} {1,-25}", string.Join(",", item
Dynamic\Transforms\ImageAnalytics\ConvertToGrayScale.cs (2)
62Console.WriteLine("{0, -25} {1, -25} {2, -25} {3, -25}", "ImagePath", 95Console.WriteLine("{0, -25} {1, -25} {2, -25} {3, -25}",
Dynamic\Transforms\ImageAnalytics\ConvertToGrayScaleInMemory.cs (1)
65Console.WriteLine($"The original pixel is {pixelString} and its pixel in gray is {grayPixelString}");
Dynamic\Transforms\ImageAnalytics\ConvertToImage.cs (2)
50Console.WriteLine("{0, -25} {1, -25} {2, -25}", "Features", "Image", 77Console.WriteLine("{0, -25} {1, -25} {2, -25}", string.Join(",",
Dynamic\Transforms\ImageAnalytics\ExtractPixels.cs (2)
69Console.WriteLine("{0, -25} {1, -25} {2, -25} {3, -25} {4, -25}", 109Console.WriteLine("{0, -25} {1, -25} {2, -25} {3, -25} " +
Dynamic\Transforms\ImageAnalytics\LoadImages.cs (2)
61Console.WriteLine("{0, -25} {1, -25} {2, -25}", "ImagePath", "Name", 89Console.WriteLine("{0, -25} {1, -25} {2, -25}",
Dynamic\Transforms\ImageAnalytics\ResizeImages.cs (2)
64Console.WriteLine("{0, -25} {1, -25} {2, -25} {3, -25}", "ImagePath", 97Console.WriteLine("{0, -25} {1, -25} {2, -25} {3, -25}",
Dynamic\Transforms\IndicateMissingValues.cs (1)
46Console.WriteLine("Features: [" + string.Join(", ", row.Features) +
Dynamic\Transforms\IndicateMissingValuesMultiColumn.cs (1)
54Console.WriteLine("Features1: [" + string.Join(", ", row
Dynamic\Transforms\NormalizeBinning.cs (8)
51Console.WriteLine(string.Join(", ", row.Select(x => x.ToString( 63Console.WriteLine(string.Join(", ", row.Select(x => x.ToString( 82Console.WriteLine($"The 0-index value in resulting array would be " + 85Console.WriteLine("Where Index(x) is the index of the bin to which " + 88Console.WriteLine("Bins upper bounds are: " + string.Join(" ", 103Console.WriteLine($"The 0-index value in resulting array would be " + 106Console.WriteLine("Where Index(x) is the index of the bin to which x " + 109Console.WriteLine("Bins upper bounds are: " + string.Join(" ",
Dynamic\Transforms\NormalizeBinningMulticolumn.cs (1)
52Console.WriteLine(string.Join(", ", column[i].Select(x => x
Dynamic\Transforms\NormalizeGlobalContrast.cs (1)
38Console.WriteLine(string.Join(", ", row.Select(x => x.ToString(
Dynamic\Transforms\NormalizeLogMeanVariance.cs (5)
49Console.WriteLine(string.Join(", ", row.Select(x => x.ToString( 59Console.WriteLine(string.Join(", ", row.Select(x => x.ToString( 74Console.WriteLine("The 1-index value in resulting array would be " + 77Console.WriteLine("y = 0.5* (1 + ERF((Math.Log(x)- " + transformParams 89Console.WriteLine($"The 1-index value in resulting array would be " +
Dynamic\Transforms\NormalizeLogMeanVarianceFixZero.cs (5)
42Console.WriteLine(string.Join(", ", row.Select(x => x.ToString("f4")))); 51Console.WriteLine(string.Join(", ", row.Select(x => x.ToString("f4")))); 61Console.WriteLine("The values in the column with index 1 in the resulting array would be produced by:"); 62Console.WriteLine($"y = 0.5* (1 + ERF((Math.Log(x)- {transformParams.Mean[1]}) / ({transformParams.StandardDeviation[1]} * sqrt(2)))"); 71Console.WriteLine($"The values in the column with index 1 in the resulting array would be produced by: y = (x - ({offset})) * {scale}");
Dynamic\Transforms\NormalizeLpNorm.cs (1)
39Console.WriteLine(string.Join(", ", row.Select(x => x.ToString(
Dynamic\Transforms\NormalizeMeanVariance.cs (5)
48Console.WriteLine(string.Join(", ", row.Select(x => x.ToString( 59Console.WriteLine(string.Join(", ", row.Select(x => x.ToString( 75Console.WriteLine($"The 1-index value in resulting array would " + 78Console.WriteLine(" y = 0.5* (1 + ERF((x- " + transformParams.Mean[1] + 91Console.WriteLine($"Values for slot 1 would be transformed by " +
Dynamic\Transforms\NormalizeMinMax.cs (4)
47Console.WriteLine(string.Join(", ", row.Select(x => x.ToString( 59Console.WriteLine(string.Join(", ", row.Select(x => x.ToString( 74Console.WriteLine($"The 1-index value in resulting array would be " + 77Console.WriteLine(" y = (x - (" + (transformParams.Offset.Length == 0 ?
Dynamic\Transforms\NormalizeMinMaxMulticolumn.cs (6)
73Console.WriteLine(string.Join(", ", column[i].Select(x => x 87Console.WriteLine(Environment.NewLine); 90Console.WriteLine(string.Join(", ", columnFixZero[i].Select(x => x 109Console.WriteLine(Environment.NewLine); 111Console.WriteLine($"The 1-index value in resulting array would be " + 114Console.WriteLine(" y = (x - (" + (transformParams.Offset.Length == 0 ?
Dynamic\Transforms\NormalizeSupervisedBinning.cs (10)
65Console.WriteLine(string.Join(", ", row.Select(x => x.ToString( 78Console.WriteLine(string.Join(", ", row.Select(x => x.ToString( 95Console.WriteLine($"The 1-index value in resulting array would be " + 98Console.WriteLine("y = (Index(x) / " + transformParams.Density[0] + 102Console.WriteLine("Where Index(x) is the index of the bin to which " + 105Console.WriteLine("Bins upper borders are: " + string.Join(" ", 117Console.WriteLine($"The 1-index value in resulting array would be " + 120Console.WriteLine(" y = (Index(x) / " + fixZeroParams.Density[1] + 124Console.WriteLine("Where Index(x) is the index of the bin to which x " + 127Console.WriteLine("Bins upper borders are: " + string.Join(" ",
Dynamic\Transforms\Projection\VectorWhiten.cs (2)
39Console.WriteLine($"{colName} column obtained " + 43Console.WriteLine(string.Join(" ", row.DenseValues().Select(x =>
Dynamic\Transforms\Projection\VectorWhitenWithOptions.cs (2)
38Console.WriteLine($"{colName} column obtained" + 42Console.WriteLine(string.Join(" ", row.DenseValues().Select(x =>
Dynamic\Transforms\ReplaceMissingValues.cs (2)
51Console.WriteLine("Features: [" + string.Join(", ", row.Features) + 81Console.WriteLine("Features: [" + string.Join(", ", row.Features) +
Dynamic\Transforms\ReplaceMissingValuesMultiColumn.cs (2)
57Console.WriteLine("Features1: [" + string.Join(", ", row 92Console.WriteLine("Features1: [" + string.Join(", ", row
Dynamic\Transforms\SelectColumns.cs (3)
50Console.WriteLine($"There are {transformedData.Schema.Count} columns" + 63Console.WriteLine($"Age and Educations columns obtained " + 67Console.WriteLine($"Age: {row.Age} Education: {row.Education}");
Dynamic\Transforms\StatefulCustomMapping.cs (2)
64Console.WriteLine("Sign\t SignedFibonacci"); 66Console.WriteLine($"{row.Sign}\t {row.SignedFibonacci}");
Dynamic\Transforms\Text\ApplyCustomWordEmbedding.cs (3)
70Console.WriteLine($"Number of Features: {prediction.Features.Length}"); 73Console.Write("Features: "); 75Console.Write($"{f:F4} ");
Dynamic\Transforms\Text\ApplyWordEmbedding.cs (3)
60Console.WriteLine($"Number of Features: {prediction.Features.Length}"); 63Console.Write("Features: "); 65Console.Write($"{f:F4} ");
Dynamic\Transforms\Text\FeaturizeText.cs (3)
68Console.WriteLine($"Number of Features: {prediction.Features.Length}"); 71Console.Write("Features: "); 73Console.Write($"{prediction.Features[i]:F4} ");
Dynamic\Transforms\Text\FeaturizeTextWithOptions.cs (4)
86Console.WriteLine($"Number of Features: {prediction.Features.Length}"); 89Console.Write("Features: "); 91Console.Write($"{prediction.Features[i]:F4} "); 93Console.WriteLine("\nTokens: " + string.Join(",", prediction
Dynamic\Transforms\Text\LatentDirichletAllocation.cs (2)
75Console.Write($"{prediction.Features[i]:F4} "); 76Console.WriteLine();
Dynamic\Transforms\Text\NormalizeText.cs (1)
51Console.WriteLine($"Normalized Text: {prediction.NormalizedText}");
Dynamic\Transforms\Text\ProduceHashedNgrams.cs (6)
68Console.WriteLine("Number of Features: " + prediction.NgramFeatures 81Console.Write("N-grams: "); 85Console.Write($"{slots[item.Key]} "); 86Console.WriteLine(); 90Console.Write("Features: "); 92Console.Write($"{prediction.NgramFeatures[i]:F4} ");
Dynamic\Transforms\Text\ProduceHashedWordBags.cs (6)
67Console.WriteLine("Number of Features: " + prediction.BagOfWordFeatures 82Console.Write("N-grams: "); 86Console.Write($"{slots[item.Key]} "); 87Console.WriteLine(); 91Console.Write("Features: "); 93Console.Write($"{prediction.BagOfWordFeatures[i]:F4} ");
Dynamic\Transforms\Text\ProduceNgrams.cs (6)
76Console.WriteLine("Number of Features: " + prediction.NgramFeatures 88Console.Write("N-grams: "); 92Console.Write($"{slots[item.Key]} "); 93Console.WriteLine(); 97Console.Write("Features: "); 99Console.Write($"{prediction.NgramFeatures[i]:F4} ");
Dynamic\Transforms\Text\ProduceWordBags.cs (6)
73Console.WriteLine("Number of Features: " + prediction.BagOfWordFeatures 88Console.Write("N-grams: "); 92Console.Write($"{slots[item.Key]} "); 93Console.WriteLine(); 97Console.Write("Features: "); 99Console.Write($"{prediction.BagOfWordFeatures[i]:F4} ");
Dynamic\Transforms\Text\RemoveDefaultStopWords.cs (2)
55Console.WriteLine("Number of words: " + prediction.WordsWithoutStopWords 59Console.WriteLine("\nWords without stop words: " + string.Join(",",
Dynamic\Transforms\Text\RemoveStopWords.cs (2)
54Console.WriteLine("Number of words: " + prediction.WordsWithoutStopWords 58Console.WriteLine("\nWords without stop words: " + string.Join(",",
Dynamic\Transforms\Text\TokenizeIntoCharactersAsKeys.cs (2)
53Console.WriteLine($"Number of tokens: {prediction.CharTokens.Length}"); 56Console.WriteLine("\nCharacter Tokens: " + string.Join(",", prediction
Dynamic\Transforms\Text\TokenizeIntoWords.cs (2)
51Console.WriteLine($"Number of words: {prediction.Words.Length}"); 54Console.WriteLine($"\nWords: {string.Join(",", prediction.Words)}");
Dynamic\Transforms\TimeSeries\DetectAnomalyBySrCnn.cs (3)
49Console.WriteLine($"{outputColumnName} column obtained post-" + 52Console.WriteLine("Data\tAlert\tScore\tMag"); 113Console.WriteLine("{0}\t{1}\t{2:0.00}\t{3:0.00}", value, prediction
Dynamic\Transforms\TimeSeries\DetectAnomalyBySrCnnBatchPrediction.cs (3)
46Console.WriteLine($"{outputColumnName} column obtained post-" + 49Console.WriteLine("Data\tAlert\tScore\tMag"); 87Console.WriteLine("{0}\t{1}\t{2:0.00}\t{3:0.00}", value, prediction
Dynamic\Transforms\TimeSeries\DetectChangePointBySsa.cs (3)
69Console.WriteLine($"Output from ChangePoint predictions on new data:"); 70Console.WriteLine("Data\tAlert\tScore\tP-Value\tMartingale value"); 128Console.WriteLine("{0}\t{1}\t{2:0.00}\t{3:0.00}\t{4:0.00}", value,
Dynamic\Transforms\TimeSeries\DetectChangePointBySsaBatchPrediction.cs (3)
70Console.WriteLine(outputColumnName + " column obtained " + 73Console.WriteLine("Data\tAlert\tScore\tP-Value\tMartingale value"); 104Console.WriteLine("{0}\t{1}\t{2:0.00}\t{3:0.00}\t{4:0.00}", value,
Dynamic\Transforms\TimeSeries\DetectChangePointBySsaStream.cs (3)
69Console.WriteLine($"Output from ChangePoint predictions on new data:"); 70Console.WriteLine("Data\tAlert\tScore\tP-Value\tMartingale value"); 132Console.WriteLine("{0}\t{1}\t{2:0.00}\t{3:0.00}\t{4:0.00}", value,
Dynamic\Transforms\TimeSeries\DetectEntireAnomalyBySrCnn.cs (2)
46Console.WriteLine("Index\tData\tAnomaly\tAnomalyScore\tMag\tExpectedValue\tBoundaryUnit\tUpperBoundary\tLowerBoundary"); 84Console.WriteLine("{0}\t{1:0.00}\t{2}\t\t{3:0.00}\t{4:0.00}\t\t{5:0.00}\t\t{6:0.00}\t\t{7:0.00}\t\t{8:0.00}",
Dynamic\Transforms\TimeSeries\DetectIidChangePoint.cs (3)
64Console.WriteLine($"{outputColumnName} column obtained " + 67Console.WriteLine("Data\tAlert\tScore\tP-Value\tMartingale value"); 143Console.WriteLine("{0}\t{1}\t{2:0.00}\t{3:0.00}\t{4:0.00}", value,
Dynamic\Transforms\TimeSeries\DetectIidChangePointBatchPrediction.cs (3)
64Console.WriteLine($"{outputColumnName} column obtained " + 67Console.WriteLine("Data\tAlert\tScore\tP-Value\tMartingale value"); 94Console.WriteLine("{0}\t{1}\t{2:0.00}\t{3:0.00}\t{4:0.00}", value,
Dynamic\Transforms\TimeSeries\DetectIidSpike.cs (3)
56Console.WriteLine($"{outputColumnName} column obtained " + 59Console.WriteLine("Data\tAlert\tScore\tP-Value"); 106Console.WriteLine("{0}\t{1}\t{2:0.00}\t{3:0.00}", value,
Dynamic\Transforms\TimeSeries\DetectIidSpikeBatchPrediction.cs (3)
55Console.WriteLine($"{outputColumnName} column obtained " + 58Console.WriteLine("Data\tAlert\tScore\tP-Value"); 81Console.WriteLine("{0}\t{1}\t{2:0.00}\t{3:0.00}", value,
Dynamic\Transforms\TimeSeries\DetectSeasonality.cs (1)
37Console.WriteLine($"Seasonality Period: #{period}");
Dynamic\Transforms\TimeSeries\DetectSpikeBySsa.cs (3)
65Console.WriteLine($"Output from spike predictions on new data:"); 66Console.WriteLine("Data\tAlert\tScore\tP-Value"); 118Console.WriteLine("{0}\t{1}\t{2:0.00}\t{3:0.00}", value,
Dynamic\Transforms\TimeSeries\DetectSpikeBySsaBatchPrediction.cs (3)
72Console.WriteLine($"{outputColumnName} column obtained " + 75Console.WriteLine("Data\tAlert\tScore\tP-Value"); 107Console.WriteLine("{0}\t{1}\t{2:0.00}\t{3:0.00}", value,
Dynamic\Transforms\TimeSeries\Forecasting.cs (4)
61Console.WriteLine($"Forecasted values:"); 62Console.WriteLine("[{0}]", string.Join(", ", forecast.Forecast)); 87Console.WriteLine("[{0}]", string.Join(", ", forecast.Forecast)); 92Console.WriteLine("[{0}]", string.Join(", ", forecast.Forecast));
Dynamic\Transforms\TimeSeries\ForecastingWithConfidenceInterval.cs (5)
112Console.WriteLine($"Forecasted values:"); 113Console.WriteLine("[{0}]", string.Join(", ", forecast)); 114Console.WriteLine($"Confidence intervals:"); 116Console.Write($"[{confidenceIntervalLowerBounds[index]} -" + 118Console.WriteLine();
Dynamic\Transforms\TimeSeries\LocalizeRootCause.cs (2)
30Console.WriteLine($"Root cause item #{count} ..."); 31Console.WriteLine($"Score: {item.Score}, Path: {String.Join(" ", item.Path)}, Direction: {item.Direction}, Dimension:{String.Join(" ", item.Dimension)}");
Dynamic\Transforms\TimeSeries\LocalizeRootCauseMultidimension.cs (2)
33Console.WriteLine($"Prepared cause #{count} ..."); 34Console.WriteLine($"Score: {item.Score}, Path: {String.Join(" ", item.Path)}, Direction: {item.Direction}, Dimension:{String.Join(" ", item.Dimension)}");
Dynamic\Transforms\TreeFeaturization\FastForestBinaryFeaturizationWithOptions.cs (4)
90Console.WriteLine("The original feature vector [" + String.Join( 94Console.WriteLine(" Trees' output values: [" + String.Join(",", 97Console.WriteLine(" Leave IDs' 0-1 representation: [" + String 100Console.WriteLine(" Paths IDs' 0-1 representation: [" + String
Dynamic\Transforms\TreeFeaturization\FastForestRegressionFeaturizationWithOptions.cs (4)
91Console.WriteLine("The original feature vector [" + String.Join(",", 95Console.WriteLine(" Trees' output values: [" + String.Join(",", 98Console.WriteLine(" Leave IDs' 0-1 representation: [" + String 101Console.WriteLine(" Paths IDs' 0-1 representation: [" + String
Dynamic\Transforms\TreeFeaturization\FastTreeBinaryFeaturizationWithOptions.cs (4)
92Console.WriteLine("The original feature vector [" + String.Join( 96Console.WriteLine(" Trees' output values: [" + String.Join(",", 99Console.WriteLine(" Leave IDs' 0-1 representation: [" + String 102Console.WriteLine(" Paths IDs' 0-1 representation: [" + String
Dynamic\Transforms\TreeFeaturization\FastTreeRankingFeaturizationWithOptions.cs (4)
88Console.WriteLine("The original feature vector [" + String.Join(",", 92Console.WriteLine(" Trees' output values: [" + String.Join(",", 95Console.WriteLine(" Leave IDs' 0-1 representation: [" + String 98Console.WriteLine(" Paths IDs' 0-1 representation: [" + String
Dynamic\Transforms\TreeFeaturization\FastTreeRegressionFeaturizationWithOptions.cs (4)
91Console.WriteLine("The original feature vector [" + String.Join(",", 95Console.WriteLine(" Trees' output values: [" + String.Join(",", 98Console.WriteLine(" Leave IDs' 0-1 representation: [" + String 101Console.WriteLine(" Paths IDs' 0-1 representation: [" + String
Dynamic\Transforms\TreeFeaturization\FastTreeTweedieFeaturizationWithOptions.cs (4)
91Console.WriteLine("The original feature vector [" + String.Join(",", 95Console.WriteLine(" Trees' output values: [" + String.Join(",", 98Console.WriteLine(" Leave IDs' 0-1 representation: [" + String 101Console.WriteLine(" Paths IDs' 0-1 representation: [" + String
Dynamic\Transforms\TreeFeaturization\PretrainedTreeEnsembleFeaturizationWithOptions.cs (4)
81Console.WriteLine("The original feature vector [" + String.Join( 85Console.WriteLine(" Trees' output values: [" + String.Join(",", 88Console.WriteLine(" Leave IDs' 0-1 representation: [" + String 91Console.WriteLine(" Paths IDs' 0-1 representation: [" + String
Dynamic\WithOnFitDelegate.cs (3)
51Console.WriteLine(binningTransformer == null); 58Console.WriteLine(binningTransformer == null); 69Console.WriteLine(
Program.cs (3)
22Console.WriteLine(type.Name); 30Console.WriteLine($"An error occurred while running {type.Name}: {ex.Message}"); 37Console.WriteLine($"Number of samples that ran without any exception: {samples}");
Microsoft.ML.Samples.GPU (80)
docs\samples\Microsoft.ML.Samples\Dynamic\TensorFlow\ImageClassification.cs (2)
62Console.WriteLine( 65Console.WriteLine(new string('-', 10));
docs\samples\Microsoft.ML.Samples\Dynamic\TensorFlow\TextClassification.cs (5)
67Console.WriteLine("Name: {0}, Type: {1}, Shape: (-1, {2})", "Features", 72Console.WriteLine("Name: {0}, Type: {1}, Shape: (-1, {2})", 125Console.WriteLine("Number of classes: {0}", prediction.Prediction 127Console.WriteLine("Is sentiment/review positive? {0}", prediction 129Console.WriteLine("Prediction Confidence: {0}", prediction.Prediction[1]
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\ImageClassificationDefault.cs (17)
72Console.WriteLine("*** Training the image classification model " + 88Console.WriteLine("Training with transfer learning finished."); 111Console.WriteLine("Prediction on a single image finished."); 113Console.WriteLine("Press any key to finish"); 114Console.ReadKey(); 121Console.WriteLine(e.Message); 147Console.WriteLine($"Scores : [{string.Join(",", prediction.Score)}], " + 155Console.WriteLine("Making bulk predictions and evaluating model's " + 162Console.WriteLine($"Micro-accuracy: {metrics.MicroAccuracy}," + 165Console.WriteLine("Predicting and Evaluation complete."); 266Console.WriteLine($"{relativeFilePath} already exists."); 270Console.WriteLine($"Downloading {relativeFilePath}"); 282Console.WriteLine(""); 283Console.WriteLine($"Downloaded {relativeFilePath}"); 298Console.WriteLine($"Extracting."); 302Console.WriteLine(""); 303Console.WriteLine("Extracting is completed.");
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\LearningRateSchedulingCifarResnetTransferLearning.cs (18)
90MetricsCallback = (metrics) => Console.WriteLine(metrics), 109Console.WriteLine("*** Training the image classification model " + 123Console.WriteLine("Training with transfer learning finished."); 145Console.WriteLine("Prediction on a single image finished."); 147Console.WriteLine("Press any key to finish"); 148Console.ReadKey(); 173Console.WriteLine($"Scores : [{string.Join(",", prediction.Score)}], " + 181Console.WriteLine("Making bulk predictions and evaluating model's " + 188Console.WriteLine($"Micro-accuracy: {metrics.MicroAccuracy}," + 191Console.WriteLine("Predicting and Evaluation complete."); 298Console.WriteLine($"{relativeFilePath} already exists."); 302Console.WriteLine($"Downloading {relativeFilePath}"); 314Console.WriteLine(""); 315Console.WriteLine($"Downloaded {relativeFilePath}"); 330Console.WriteLine($"Extracting."); 339Console.Write("."); 343Console.WriteLine(""); 344Console.WriteLine("Extracting is completed.");
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningEarlyStopping.cs (18)
86MetricsCallback = (metrics) => Console.WriteLine(metrics), 96Console.WriteLine("*** Training the image classification model " + 113Console.WriteLine("Training with transfer learning finished."); 140Console.WriteLine("Prediction on a single image finished."); 142Console.WriteLine("Press any key to finish"); 143Console.ReadKey(); 169Console.WriteLine($"ImageFile : " + 179Console.WriteLine("Making bulk predictions and evaluating model's " + 186Console.WriteLine($"Micro-accuracy: {metrics.MicroAccuracy}," + 189Console.WriteLine("Predicting and Evaluation complete."); 254Console.WriteLine($"{relativeFilePath} already exists."); 258Console.WriteLine($"Downloading {relativeFilePath}"); 270Console.WriteLine(""); 271Console.WriteLine($"Downloaded {relativeFilePath}"); 286Console.WriteLine($"Extracting."); 295Console.Write("."); 299Console.WriteLine(""); 300Console.WriteLine("Extracting is completed.");
docs\samples\Microsoft.ML.Samples\Dynamic\Trainers\MulticlassClassification\ImageClassification\ResnetV2101TransferLearningTrainTestSplit.cs (18)
75MetricsCallback = (metrics) => Console.WriteLine(metrics), 89Console.WriteLine("*** Training the image classification model " + 105Console.WriteLine("Training with transfer learning finished."); 128Console.WriteLine("Prediction on a single image finished."); 130Console.WriteLine("Press any key to finish"); 131Console.ReadKey(); 156Console.WriteLine($"Scores : [{string.Join(",", prediction.Score)}], " + 164Console.WriteLine("Making bulk predictions and evaluating model's " + 171Console.WriteLine($"Micro-accuracy: {metrics.MicroAccuracy}," + 174Console.WriteLine("Predicting and Evaluation complete."); 275Console.WriteLine($"{relativeFilePath} already exists."); 279Console.WriteLine($"Downloading {relativeFilePath}"); 291Console.WriteLine(""); 292Console.WriteLine($"Downloaded {relativeFilePath}"); 307Console.WriteLine($"Extracting."); 316Console.Write("."); 320Console.WriteLine(""); 321Console.WriteLine("Extracting is completed.");
Program.cs (2)
21Console.WriteLine(type.Name); 27Console.WriteLine("Number of samples that ran without any exception: " + samples);
Microsoft.ML.Samples.OneDal (6)
Program.cs (6)
182Console.WriteLine("algorithm,all workflow time[ms],training accuracy,testing accuracy,training F1 score,testing F1 score"); 183Console.WriteLine($"Random Forest Binary,{mainWatch.Elapsed.TotalMilliseconds},{metrics[0]},{metrics[1]},{metrics[2]},{metrics[3]}"); 189Console.WriteLine("algorithm,all workflow time[ms],training RMSE,testing RMSE,training R2 score,testing R2 score"); 190Console.WriteLine($"Random Forest Regression,{mainWatch.Elapsed.TotalMilliseconds},{metrics[0]},{metrics[1]},{metrics[2]},{metrics[3]}"); 197Console.WriteLine("algorithm,all workflow time[ms],training RMSE,testing RMSE,training R2 score,testing R2 score"); 198Console.WriteLine($"OLS Regression,{mainWatch.Elapsed.TotalMilliseconds},{metrics[0]},{metrics[1]},{metrics[2]},{metrics[3]}");
Microsoft.ML.StandardTrainers (21)
Optimizer\DifferentiableFunction.cs (7)
194Console.WriteLine(Header); 231Console.WriteLine("{0,-9}{1,-18:0.0000e0}{2,-18:0.0000e0}{3,-15:0.0000e0}{4,0:0.0000e0}", n, numDeriv, dirDeriv, diff, normDiff); 258Console.WriteLine(Header); 278Console.WriteLine("{0,-9}{1,-18:0.0000e0}{2,-18:0.0000e0}{3,-15:0.0000e0}{4,0:0.0000e0}", n, numDeriv, dirDeriv, diff, normDiff); 297Console.WriteLine(Header); 316Console.WriteLine("{0,-9}{1,-18:0.0000e0}{2,-18:0.0000e0}{3,-15:0.0000e0}{4,0:0.0000e0}", n, numDeriv, dirDeriv, diff, normDiff); 351Console.WriteLine("{0,-18:0.0000e0}{1,-18:0.0000e0}{2,-15:0.0000e0}{3,0:0.0000e0}", numDeriv, dirDeriv, diff, normDiff);
Optimizer\LineSearch.cs (7)
498Console.WriteLine(deriv); 502Console.WriteLine(deriv); 519Console.WriteLine("{0}\t{1}", n, norm); 528Console.WriteLine(VectorUtils.Norm(grad)); 529Console.WriteLine(); 530Console.WriteLine(); 537Console.WriteLine(VectorUtils.Norm(grad));
Optimizer\OptimizationMonitor.cs (3)
85Console.Error.Write(_checkingMessage); 86Console.Error.Flush(); 91Console.Error.Write('\b');
Standard\LogisticRegression\LbfgsPredictorBase.cs (3)
363Console.Write("."); 365Console.WriteLine("\t{0}\t{1}", numExamples, normDiff); 404Console.WriteLine();
Standard\SdcaBinary.cs (1)
1351Console.WriteLine("Table: {0} out of {1}", c, _rgit.Length);
Microsoft.ML.TensorFlow.Tests (3)
TensorflowTests.cs (3)
1514MetricsCallback = (metric) => Console.WriteLine(metric), 1670Console.WriteLine(metric); 1806MetricsCallback = (metric) => { Console.WriteLine(metric); lastEpoch = metric.Train != null ? metric.Train.Epoch : 0; },
Microsoft.ML.TestFramework (4)
BaseTestClass.cs (3)
34Console.WriteLine($"Unhandled exception: {e.ExceptionObject}"); 74Console.WriteLine($"Starting test: {FullTestName}"); 82Console.WriteLine($"Finished test: {FullTestName} " +
GlobalBase.cs (1)
77Console.WriteLine("Assert handler invoked but ignored: {0}", msg);
Microsoft.ML.Tests (8)
ExpressionLanguageTests\ExpressionLanguageTests.cs (1)
441private static TextWriter OutWriter { get { return Writer ?? Console.Out; } }
Scenarios\Api\CookbookSamples\CookbookSamplesDynamicApi.cs (7)
109Console.WriteLine(binningTransformer == null); 116Console.WriteLine(binningTransformer == null); 127Console.WriteLine( 363Console.WriteLine($"Feature {i}: Difference in RMS - {featureImportance[i].RootMeanSquaredError.Mean}"); 481Console.WriteLine(row); 661Console.WriteLine(metrics.MicroAccuracy); 669Console.WriteLine(microAccuracies.Average());
Microsoft.ML.TimeSeries.Tests (1)
TimeSeriesDirectApi.cs (1)
1073Console.WriteLine(data.Value);
Microsoft.ML.Tokenizers.Data.Tests (1)
src\Common\tests\RetryHelper.cs (1)
61Console.WriteLine(diagnostic);
Microsoft.ML.Tokenizers.Tests (1)
src\Common\tests\RetryHelper.cs (1)
61Console.WriteLine(diagnostic);
Microsoft.ML.TorchSharp (1)
AutoFormerV2\ObjectDetectionMetrics.cs (1)
72Console.WriteLine($"total : {total}, filtered: {filterNum}, filter ratio: {(total == 0 ? 0f : ((double)filterNum / (double)total)):P}");
Microsoft.NET.Build.Containers (1)
ContainerBuilder.cs (1)
103Console.WriteLine(Resource.GetString(nameof(Strings.BaseImageNotFound)), sourceImageReference, containerRuntimeIdentifier);
Microsoft.NET.HostModel (2)
Bundle\Trace.cs (2)
24Console.WriteLine("LOG: " + fmt, args); 30Console.Error.WriteLine($"ERROR: {message}");
Microsoft.NET.Sdk.BlazorWebAssembly.Tool (2)
Program.cs (2)
60Console.Error.WriteLine($"Error compressing '{source}' into '{output}'"); 61Console.Error.WriteLine(ex.ToString());
Microsoft.NET.Sdk.StaticWebAssets.Tool (2)
Program.cs (2)
60Console.Error.WriteLine($"Error compressing '{source}' into '{output}'"); 61Console.Error.WriteLine(ex.ToString());
Microsoft.TemplateEngine.Abstractions (1)
IEnvironment.cs (1)
17/// The width of the console buffer. This is typically the value of <see cref="System.Console.BufferWidth" />.
Microsoft.TemplateEngine.Cli (4)
CliEnvironment.cs (2)
34public int ConsoleBufferWidth => Console.IsOutputRedirected ? DefaultBufferWidth : Console.BufferWidth;
Commands\BaseCommand.cs (1)
178Console.ReadLine();
Commands\create\TemplateCommand.cs (1)
166TemplateInvoker invoker = new(_environmentSettings, () => Console.ReadLine() ?? string.Empty);
Microsoft.TemplateEngine.Edge (2)
DefaultEnvironment.cs (2)
33public int ConsoleBufferWidth => Console.IsOutputRedirected ? DefaultBufferWidth : Console.BufferWidth;
Microsoft.TemplateEngine.Utils (1)
DefaultTemplateEngineHost.cs (1)
70Console.WriteLine(message);
Microsoft.TestPlatform.Build (4)
Tasks\VSTestTask.cs (3)
54Console.WriteLine("Waiting for debugger attach..."); 57Console.WriteLine($"Process Id: {currentProcess.Id}, Name: {currentProcess.ProcessName}"); 81Console.WriteLine(Resources.Resources.TestRunningSummary, TestFileFullPath, VSTestFramework);
Tracing.cs (1)
18Console.WriteLine(message);
Microsoft.TestPlatform.CoreUtilities (6)
Output\ConsoleOutput.cs (2)
25_standardOutput = Console.Out; 26_standardError = Console.Error;
Output\OutputExtensions.cs (4)
52Information(output, appendPrefix, Console.ForegroundColor, format, args); 128var previousForegroundColor = Console.ForegroundColor; 131Console.ForegroundColor = foregroundColor; 136Console.ForegroundColor = previousForegroundColor;
MilvusPlayground.ApiService (1)
Program.cs (1)
31Console.WriteLine("Drop collection {0}", collectionName);
MSBuild (76)
AutomaticEncodingRestorer.cs (4)
32_originalOutputEncoding = Console.OutputEncoding; 40_originalInputEncoding = Console.InputEncoding; 54Console.OutputEncoding = _originalOutputEncoding; 58Console.InputEncoding = _originalInputEncoding;
MSBuildClientApp.cs (1)
85Console.Error.WriteLine(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("MSBuildServerUnavailable", detail));
src\msbuild\src\Shared\Debugging\PrintLineDebuggerWriters.cs (1)
69public static CommonWriterType StdOutWriter = (id, callsite, args) => Console.WriteLine(SimpleFormat(id, callsite, args));
XMake.cs (70)
258Console.Error.WriteLine("MSBuild could not start: " + ex); 318Console.CancelKeyPress += Console_CancelKeyPress; 435Console.WriteLine("\n{0}{1}{0}", new string('=', 41 - ("Process".Length / 2)), "Process"); 436Console.WriteLine("||{0,50}|{1,20:N0}|{2,8}|", "Peak Working Set", currentProcess.PeakWorkingSet64, "bytes"); 437Console.WriteLine("||{0,50}|{1,20:N0}|{2,8}|", "Peak Paged Memory", currentProcess.PeakPagedMemorySize64, "bytes"); // Not very useful one 438Console.WriteLine("||{0,50}|{1,20:N0}|{2,8}|", "Peak Virtual Memory", currentProcess.PeakVirtualMemorySize64, "bytes"); // Not very useful one 439Console.WriteLine("||{0,50}|{1,20:N0}|{2,8}|", "Peak Privileged Processor Time", currentProcess.PrivilegedProcessorTime.TotalMilliseconds, "ms"); 440Console.WriteLine("||{0,50}|{1,20:N0}|{2,8}|", "Peak User Processor Time", currentProcess.UserProcessorTime.TotalMilliseconds, "ms"); 441Console.WriteLine("||{0,50}|{1,20:N0}|{2,8}|", "Peak Total Processor Time", currentProcess.TotalProcessorTime.TotalMilliseconds, "ms"); 443Console.WriteLine("{0}{0}", new string('=', 41)); 634Console.WriteLine($"Waiting for debugger to attach ({EnvironmentUtilities.ProcessPath} PID {EnvironmentUtilities.CurrentProcessId}). Press enter to continue..."); 635Console.ReadLine(); 684Console.CancelKeyPress += cancelHandler; 798Console.WriteLine(ResourceUtilities.GetResourceString("PossiblyOmittedMaxCPUSwitch")); 839exitType = OutputPropertiesAfterEvaluation(getProperty, getItem, project, Console.Out); 914exitType = OutputBuildInformationInJson(result, getProperty, getItem, getTargetResult, loggers, exitType, Console.Out); 951Console.WriteLine(e.Message); 952Console.WriteLine(); 962Console.WriteLine(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("ConfigurationFailurePrefixNoErrorCode", e.ErrorCode, e.Message)); 969Console.WriteLine(e.Message); 980Console.WriteLine(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("LoggerFailurePrefixNoErrorCode", e.ErrorCode, e.Message)); 986Console.WriteLine(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("LoggerFailurePrefixWithErrorCode", e.Message)); 993Console.WriteLine(e.InnerException.ToString()); 1005Console.WriteLine($"MSBUILD : error {e.ErrorCode}: {e.Message}"); 1007Console.WriteLine("This is an unhandled exception from a logger -- PLEASE OPEN A BUG AGAINST THE LOGGER OWNER."); 1011Console.WriteLine(e.InnerException.ToString()); 1017Console.WriteLine( 1031Console.WriteLine($"MSBUILD : error {pce?.ErrorCode ?? exppce?.ErrorCode}: {e.Message}"); 1036Console.WriteLine("This is an unhandled exception from a project cache -- PLEASE OPEN A BUG AGAINST THE PROJECT CACHE OWNER."); 1042Console.WriteLine(e.InnerException.ToString()); 1051Console.WriteLine( 1059Console.WriteLine( 1069Console.WriteLine("{0}\r\n{1}", AssemblyResources.GetString("FatalError"), e.ToString()); 1071Console.WriteLine("This is an unhandled exception in MSBuild Engine -- PLEASE OPEN A BUG AGAINST THE MSBUILD TEAM.\r\n{0}", e.ToString()); 1087Console.CancelKeyPress -= cancelHandler; 1164Console.Error.WriteLine(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("BuildFailedWithPropertiesItemsOrTargetResultsRequested")); 1477Console.WriteLine(ResourceUtilities.GetResourceString("UnsupportedSwitchForSolutionFiles"), CommandLineSwitches.ParameterizedSwitch.Preprocess); 1498Console.WriteLine(ResourceUtilities.GetResourceString("UnsupportedSwitchForSolutionFiles"), CommandLineSwitches.ParameterizedSwitch.Targets); 1723Console.WriteLine(AssemblyResources.GetString("FatalError")); 1725Console.WriteLine("This is an unhandled exception in MSBuild -- PLEASE OPEN A BUG AGAINST THE MSBUILD TEAM."); 1727Console.WriteLine(exception.ToString()); 1728Console.WriteLine(); 1778Console.Error.WriteLine(message); 1971Console.OutputEncoding = Encoding.UTF8; 1973Console.InputEncoding = Encoding.UTF8; 1987codepage = Console.OutputEncoding.CodePage; 2089Console.WriteLine($"Waiting for debugger to attach... ({EnvironmentUtilities.ProcessPath} PID {EnvironmentUtilities.CurrentProcessId})"); 2347Console.WriteLine($"{Path.Combine(s_exePath, s_exeName)} {equivalentCommandLine} {projectFile}"); 2804TextWriter writer = Console.Out; 2823TextWriter writer = Console.Out; 3542Console.WriteLine(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("DuplicateBinaryLoggerPathsIgnored", string.Join(", ", processedParams.DuplicateFilePaths))); 4029Console.WriteLine(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("OptionalLoggerCreationMessage", loggerDescription.Name, e.Message)); 4108Console.WriteLine(warning); 4114Console.WriteLine(message); 4202Console.WriteLine(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("MSBuildVersionMessage", ProjectCollection.DisplayVersion, NativeMethods.FrameworkName)); 4214Console.WriteLine(AssemblyResources.GetString("HelpMessage_1_Syntax")); 4215Console.WriteLine(AssemblyResources.GetString("HelpMessage_2_Description")); 4216Console.WriteLine(AssemblyResources.GetString("HelpMessage_3_SwitchesHeader")); 4219Console.WriteLine(AssemblyResources.GetString(parameterizedSwitchRsouceId)); 4223Console.WriteLine(AssemblyResources.GetString(parameterlessSwitchRsouceId)); 4225Console.WriteLine(AssemblyResources.GetString("HelpMessage_7_ResponseFile")); 4226Console.WriteLine(AssemblyResources.GetString("HelpMessage_16_Examples")); 4227Console.WriteLine(AssemblyResources.GetString("HelpMessage_37_DocsLink")); 4235Console.WriteLine(AssemblyResources.GetString("HelpPrompt")); 4240Console.WriteLine( 4248Console.WriteLine($" {responseFilePath}"); 4260Console.WriteLine(ProjectCollection.Version.ToString()); 4264Console.Write(ProjectCollection.Version.ToString()); 4274Console.WriteLine(availability); 4285Console.WriteLine(jsonNode.ToJsonString(options));
mscorlib (1)
src\runtime\src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
127[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Console))]
netstandard (1)
netstandard.cs (1)
431[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Console))]
NuGet.Build.Tasks (5)
ConsoleOutLogItem.cs (1)
11/// Represents a base class for defining log items sent over <see cref="Console.Out" />.
ConsoleOutLogMessage.cs (1)
13/// Represents a log message, warning, or error that can be serialized and sent across a text stream like <see cref="Console.Out" />.
StaticGraphRestoreTaskBase.cs (3)
155Encoding previousConsoleInputEncoding = Console.InputEncoding; 158Console.InputEncoding = utf8Encoding; 172Console.InputEncoding = previousConsoleInputEncoding;
NuGet.Build.Tasks.Console (6)
ConsoleLoggingQueue.cs (3)
22/// Represents a logging queue of messages that are written to <see cref="System.Console.Out" />. 146/// Processes a logging message by serializing it as JSON and writing it to <see cref="System.Console.Out" />. 151System.Console.Out.WriteLine(message.ToJson());
Program.cs (3)
64if (!TryParseArguments(args, () => System.Console.OpenStandardInput(), System.Console.Error, out (Dictionary<string, string> Options, FileInfo MSBuildExeFilePath, string EntryProjectFilePath, Dictionary<string, string> MSBuildGlobalProperties) arguments)) 122System.Console.Out.WriteLine(consoleOutLogMessage.ToJson());
NuGet.CommandLine.XPlat (31)
Commands\DeleteCommand.cs (5)
110currentColor = Console.ForegroundColor; 111Console.ForegroundColor = ConsoleColor.Yellow; 112Console.WriteLine(string.Format(CultureInfo.CurrentCulture, Strings.ConsoleConfirmMessage, description)); 113var result = Console.ReadLine(); 118Console.ForegroundColor = currentColor;
Commands\PackageReferenceCommands\ListPackage\ListPackageCommand.cs (2)
165IReportRenderer reportRenderer = GetOutputType(consoleOut ?? Console.Out, consoleError ?? Console.Error, parseResult.GetValue(outputFormat), outputVersionOption: parseResult.GetValue(outputVersion));
Commands\PackageSearch\PackageSearchCommand.cs (1)
133int width = Console.WindowWidth;
Commands\PackageSearch\Table.cs (1)
37private readonly ConsoleColor _consoleColor = Console.ForegroundColor;
ListPackage\ListPackageConsoleRenderer.cs (6)
26: this(Console.Out, Console.Error) 148Console.ForegroundColor = ConsoleColor.Blue; 166Console.ResetColor(); 171Console.ForegroundColor = ConsoleColor.Blue; 173Console.ResetColor();
ListPackage\ListPackageJsonRenderer.cs (1)
56_writer = textWriter ?? Console.Out;
Program.cs (1)
109DefaultValueFactory = _ => Console.IsOutputRedirected
Utility\CommandOutputLogger.cs (10)
68Console.WriteLine(data); 107Console.Write(PrefixAllLines(caption, message)); 111Console.WriteLine($"{caption}{message}"); 146var currentColor = Console.ForegroundColor; 147Console.ForegroundColor = color; 149Console.ForegroundColor = currentColor; 154var currentColor = Console.ForegroundColor; 155Console.ForegroundColor = color; 156Console.Write(data); 157Console.ForegroundColor = currentColor;
Utility\ProjectPackagesPrintUtility.cs (4)
163Console.ForegroundColor = formattedCell.ForegroundColor.Value; 166Console.Write(formattedCell.Value); 167Console.ResetColor(); 170Console.WriteLine();
NuGet.Commands (2)
ListCommand\ListCommandRunner.cs (2)
181Console.WriteLine(); 201Console.WriteLine(listArgs.ListCommandNoPackages);
NuGet.Protocol (3)
Plugins\PluginFactory.cs (3)
335var standardInput = new StreamReader(Console.OpenStandardInput(), encoding); 336var standardOutput = new StreamWriter(Console.OpenStandardOutput(), encoding); 413Console.WriteLine(message);
PresentationCore (1)
MS\Internal\MediaTrace.cs (1)
62System.Diagnostics.Trace.Listeners.Add(new TextWriterTraceListener(Console.Out));
PresentationFramework (7)
MS\Internal\Data\AccessorTable.cs (5)
122Console.WriteLine($"After generation {_generation}, removed {originalCount - _table.Count} of {originalCount} entries from AccessorTable, new count is {_table.Count}"); 139Console.WriteLine("No stats available for AccessorTable."); 143Console.WriteLine("AccessorTable had {0} hits, {1} misses ({2,2}%) in {3} generations.", 145Console.WriteLine(" Age Hits Pct Cumulative"); 152Console.WriteLine("{0,5} {1,6} {2,5} {3,5}",
MS\Internal\Documents\DocumentsTrace.cs (1)
105TextWriterTraceListener consoleListener = new TextWriterTraceListener( Console.Out );
MS\Internal\Utility\TraceLog.cs (1)
51Console.WriteLine(_log[k]);
Publishers.DbSetup (1)
Program.cs (1)
15Console.WriteLine("Database created!");
ReachFramework (81)
AlphaFlattener\DrawingContext.cs (3)
816Console.WriteLine(" DrawGeometry(" + _comment + ")"); 912Console.WriteLine(" DrawImage(" + _comment + ")"); 962Console.WriteLine(" DrawGlyphRun(" + _comment + ")");
AlphaFlattener\Flattener.cs (38)
166Console.WriteLine("TreeFlatten for subtree"); 180Console.WriteLine("end TreeFlatten for subtree"); 181Console.WriteLine("AlphaFlatten for subtree"); 189Console.WriteLine("end AlphaFlatten for subtree"); 321Console.WriteLine(); 322Console.WriteLine("Stage 2: Calculating intersections using bounding boxes"); 323Console.WriteLine(); 333Console.WriteLine(); 334Console.WriteLine("Original display list"); 335Console.WriteLine(); 344Console.WriteLine(); 346Console.WriteLine("Primitives in display list: {0}", count); 348Console.WriteLine(); 363Console.WriteLine(); 364Console.WriteLine("Stage 4: Alpha flattening"); 365Console.WriteLine(); 381Console.Write(i); 382Console.Write(": "); 400Console.WriteLine(""); 419Console.WriteLine("Delete command {0}", i); 727Console.WriteLine("Make {0} opaque", i); 813Console.WriteLine(); 814Console.WriteLine("Start 3: Display list optimization"); 815Console.WriteLine(); 987Console.WriteLine(); 988Console.WriteLine("Interesting primitives: {0}", vip); 989Console.WriteLine("Area with transparency: {0}", DisplayList.LeftPad(target, 0)); 990Console.WriteLine(); 994Console.WriteLine( 1002Console.WriteLine(); 1065Console.WriteLine("Serialized primitives to " + name); 1071Console.WriteLine(e.ToString()); 1237Console.WriteLine(); 1238Console.WriteLine("\r\nStage 1: Tree Flattening"); 1239Console.WriteLine(); 1273Console.WriteLine(); 1274Console.WriteLine("End AlphaFlattening"); 1275Console.WriteLine();
AlphaFlattener\Primitive.cs (1)
536Console.WriteLine("Drawing of type '" + d.GetType() + "' not handled.");
AlphaFlattener\PrimitiveList.cs (35)
75Console.WriteLine(); 77Console.WriteLine(" No Type Und Ovr TrO Bounding Box Clipping"); 81Console.Write(" Transform"); 84Console.WriteLine(); 94Console.Write(LeftPad(index, 4) + LeftPad(typ, 18) + ":"); 100Console.Write(' '); 104Console.Write('@'); 109Console.Write(" "); 115Console.Write(LeftPad(info.underlay.Count, 3)); 120Console.Write(' ' + LeftPad(info.overlap.Count, 3)); 124Console.Write('$'); 125Console.Write(LeftPad(info.overlapHasTransparency, 3)); 129Console.Write(" "); 132Console.Write(' '); 136Console.Write(" "); 139Console.Write(LeftPad(info.bounds, 0)); 145Console.Write(LeftPad(clip.Bounds, 0)); 152Console.Write(" {"); 153Console.Write(LeftPad(m.M11, 3) + ' '); 154Console.Write(LeftPad(m.M12, 3) + ' '); 155Console.Write(LeftPad(m.M21, 3) + ' '); 156Console.Write(LeftPad(m.M22, 3) + ' '); 157Console.Write(LeftPad(m.OffsetX, 6) + ' '); 158Console.Write(LeftPad(m.OffsetY, 6)); 159Console.Write("} "); 170Console.Write(" \""); 174Console.Write(chars[i]); 177Console.Write('"'); 195Console.Write(" SolidColorBrush({0})", sb.Color); 203Console.Write(' '); 204Console.Write(LeftPad(extra, 0)); 207Console.WriteLine(); 291Console.Write("skip "); 366Console.Write(" <{0} {1}>", one, two); 372Console.WriteLine();
AlphaFlattener\Utility.cs (2)
43Console.WriteLine("{0} {1} {2}", s_count, elapsed.TotalSeconds, s_total); 985Console.WriteLine("Combine({0})", mode);
Serialization\VisualTreeFlattener.cs (2)
148Console.WriteLine("Saving " + uri); 747Console.WriteLine("Drawing of type '" + d.GetType() + "' not handled.");
ResultsOfTGenerator (11)
Program.cs (11)
45Console.WriteLine($"Will generate class file at {classFilePath}"); 49Console.WriteLine("Press any key to continue or Ctrl-C to cancel"); 50Console.ReadKey(); 213Console.WriteLine(); 214Console.WriteLine($"{file.Length:N0} bytes written to {file.FullName} successfully!"); 215Console.WriteLine(); 220Console.WriteLine($"Will generate tests file at {testFilePath}"); 224Console.WriteLine("Press any key to continue or Ctrl-C to cancel"); 225Console.ReadKey(); 299Console.WriteLine(); 300Console.WriteLine($"{file.Length:N0} bytes written to {file.FullName} successfully!");
Roslyn.Diagnostics.Analyzers (10)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\Debug.cs (2)
64Console.WriteLine(message); 65Console.WriteLine(stackTrace);
src\roslyn\src\Dependencies\Contracts\ErrorReporting\FailFast.cs (8)
65Console.WriteLine("Dumping info before call to failfast"); 68Console.WriteLine(message); 73Console.WriteLine("Exception info"); 76Console.WriteLine(current.Message); 77Console.WriteLine(current.StackTrace); 81Console.WriteLine("Stack trace of handler"); 83Console.WriteLine(stackTrace.ToString()); 85Console.Out.Flush();
rzc (13)
CommandLine\AnsiConsole.cs (7)
15OriginalForegroundColor = Console.ForegroundColor; 24return new AnsiConsole(Console.Out, useConsoleColor); 29return new AnsiConsole(Console.Error, useConsoleColor); 38Console.ForegroundColor = (ConsoleColor)(((int)Console.ForegroundColor & 0x08) | ((int)color & 0x07)); 49Console.ForegroundColor = (ConsoleColor)((int)Console.ForegroundColor ^ 0x08);
CommandLine\CommandLineApplication.cs (2)
58public TextWriter Out { get; set; } = Console.Out; 59public TextWriter Error { get; set; } = Console.Error;
DebugMode.cs (1)
16Console.WriteLine("Waiting for debugger in pid: {0}", Environment.ProcessId);
Program.cs (3)
28Console.CancelKeyPress += (sender, e) => { cancel.Cancel(); }; 53Console.Write(output); 54Console.Error.Write(error);
SqlServerEndToEnd.DbSetup (1)
Program.cs (1)
20Console.WriteLine("Database schema created!");
Stress.ApiService (127)
ConsoleStresser.cs (124)
11var stdout = Console.OpenStandardOutput(); 14Console.SetOut(con); 16Console.WriteLine(); 17Console.WriteLine("Console stress"); 18Console.WriteLine("=============="); 19Console.WriteLine(); 21Console.WriteLine("UTF-8 characters:"); 22Console.WriteLine("Emojis: \U0001F600, \U0001F680, \U0001F4A9"); 23Console.WriteLine("Chinese: \u8fd9\u662f\u4e00\u4e2a\u4e2d\u6587\u5b57\u7b26\u4e32"); // "This is a Chinese string" 24Console.WriteLine(); 26Console.WriteLine("Entire URL in one segment:"); 27Console.Write("\x1b[36mhttp://localhost:7000\x1b[0m"); 28Console.WriteLine(); 30Console.WriteLine("Scheme and host in separate segment to port:"); 31Console.Write("\x1b[36mhttp://localhost\x1b[0m"); 32Console.Write("\x1b[31m:7001\x1b[0m"); 33Console.WriteLine(); 35Console.WriteLine("Everything in different segments:"); 36Console.Write("\x1b[36mhttp\x1b[0m"); 37Console.Write("\x1b[31m://\x1b[0m"); 38Console.Write("\x1b[32mlocalhost\x1b[0m"); 39Console.Write("\x1b[33m:7002\x1b[0m"); 40Console.WriteLine(); 41Console.WriteLine(); 43Console.WriteLine("URL examples:"); 44Console.Write("\x1b[36m"); // Set color so we can see the difference between URLs and the rest of the text 45Console.WriteLine("https://www.example.com"); 46Console.WriteLine("https://subdomain.example.com"); 47Console.WriteLine("http://www.example.com"); 48Console.WriteLine("http://example.com/path/to/page"); 49Console.WriteLine("https://www.example.com?query=string&param=value"); 50Console.WriteLine("https://www.example.com#anchor"); 51Console.WriteLine("https://255.255.255.255"); 52Console.WriteLine("ftp://example.com/resource"); 53Console.WriteLine("mailto:user@example.com"); 54Console.WriteLine("https://user:password@example.com"); 55Console.WriteLine("https://example.com:8080"); 56Console.WriteLine("https://example.com/path/to/page.html"); 57Console.WriteLine("https://www.example.co.uk"); 58Console.WriteLine("https://example.io"); 59Console.WriteLine("https://xn--n3h.com (Punycode for Unicode characters)"); 60Console.WriteLine("https://www.example.com/path%20with%20spaces"); 61Console.WriteLine("https://[2001:db8::1] (IPv6 address)"); 62Console.WriteLine("http://www.example.com/foo.php?bar[]=1&bar[]=2&bar[]=3"); 63Console.WriteLine("https://www.example.com/path/to/page?#"); 64Console.WriteLine("https://user:password@example.com/path?query=string#anchor"); 65Console.WriteLine("https://www.example.com/? (Question mark at end of URL)"); 66Console.WriteLine("https://example.com/# (Hash at end of URL)"); 67Console.WriteLine("https://www.example.com/path/to/page/?query=string#anchor"); 68Console.WriteLine("https://example.com./path/to/page/ (Dot at the end of domain)"); 69Console.WriteLine("https://www-example.com (Dash in domain)"); 70Console.WriteLine("https://example.com/path/to/page/index.html?query=string#section1"); 71Console.WriteLine("https://example.com/empty/"); 72Console.WriteLine("https://example.com/empty/. (Dot at end of URL)"); 73Console.WriteLine("https://www.example.com/path/with/semicolon; (Semicolon at end of URL)"); 74Console.WriteLine("https://www.example.com/path/with/semicolon, (Comma at end of URL)"); 75Console.WriteLine("https://www.example.com/path/with/plus+sign"); 76Console.WriteLine("https://www.example.com/path/with/equals=sign"); 77Console.WriteLine("https://www.example.com/path/with/ampersand&sign"); 78Console.WriteLine("https://www.example.com/path/with/percent%25encoded"); 79Console.WriteLine("https://www.example.com/path/with/dollar$sign"); 80Console.WriteLine("https://www.example.com/path/with/exclamation!mark"); 81Console.WriteLine("https://www.example.com/;path/"); 82Console.WriteLine("https://www.example.com/path/?query;string"); 83Console.WriteLine("https://;www.example.com/"); 84Console.WriteLine("https://www;.example.com/"); 85Console.WriteLine("https://www.exa;mple.com/"); 87Console.Write("\x1b[0m"); // reset color 90Console.WriteLine(); 91Console.WriteLine("ANSI Console Foreground and Background Colors"); 96Console.Write("\x1b[" + color + "m"); // Set foreground color 97Console.WriteLine($"This is foreground color {color}"); 99Console.Write("\x1b[0m"); // Reset colors to default 104Console.Write("\x1b[" + color + "m"); // Set background color 105Console.Write($"This is background color {color}"); 106Console.WriteLine("\x1b[0m"); // Reset colors to default after each background to maintain readability 108Console.Write("\x1b[0m"); // Reset all colors to default at the end 110Console.WriteLine(); 111Console.WriteLine("\u001b[36;45mThis text is Cyan with a Magenta background.\u001b[0m"); 112Console.WriteLine("\u001b[31mThis text has a red foreground using ANSI escape codes.\u001b[0m"); 113Console.WriteLine("\u001b[42mThis text has a green background using ANSI escape codes.\u001b[0m"); 114Console.WriteLine("\u001b[1mThis text is bold using ANSI escape codes.\u001b[0m"); 115Console.WriteLine("\u001b[4mThis text is underlined using ANSI escape codes.\u001b[0m"); 116Console.WriteLine("\u001b[31;1;4mThis text is red, bold, and underlined.\u001b[0m"); 117Console.WriteLine("\u001b[31;3;4mThis text is red, italic and underlined.\u001b[0m"); 118Console.WriteLine("\u001b[31;3;4;9mThis text is red, italic and strikethrough.\u001b[0m"); 119Console.WriteLine("\u001b[31;42;3;4mThis text is red, green background, italic and underlined.\u001b[0m"); 121Console.WriteLine(); 122Console.WriteLine("\u001b[38;5;221mThis text is a Xterm text color using ANSI escape codes.\u001b[0m"); 123Console.WriteLine("\u001b[48;5;95mThis text is a Xterm bakground color using ANSI escape codes.\u001b[0m"); 124Console.WriteLine("\u001b[38;5;221m\u001b[48;5;95mThis text is a Xterm text and bakground color using ANSI escape codes.\u001b[0m"); 125Console.WriteLine("\u001b[38;5;243mThis text is a Xterm gray text color using ANSI escape codes.\u001b[0m"); 126Console.WriteLine("\u001b[48;5;243mThis text is a Xterm gray background color using ANSI escape codes.\u001b[0m"); 127Console.WriteLine("\u001b[38;5;1mThis text is a Xterm red color using ANSI escape codes.\u001b[0m"); 128Console.WriteLine("\u001b[38;5;9mThis text is a Xterm bright red color using ANSI escape codes.\u001b[0m"); 129Console.WriteLine("\u001b[48;5;1mThis text is a Xterm red background color using ANSI escape codes.\u001b[0m"); 130Console.WriteLine("\u001b[48;5;9mThis text is a Xterm bright red background color using ANSI escape codes.\u001b[0m"); 131Console.WriteLine("\u001b[3;38;5;9mThis text is a Xterm bright red color and italic using ANSI escape codes.\u001b[0m"); 132Console.WriteLine("\u001b[4;38;5;9mThis text is a Xterm bright red color and underlined using ANSI escape codes.\u001b[0m"); 133Console.WriteLine("\u001b[9;38;5;9mThis text is a Xterm bright red color and strikethrough using ANSI escape codes.\u001b[0m"); 135Console.WriteLine(); 136Console.WriteLine("\u001b[38;5;321mThis text is a Xterm text color using invalid color value.\u001b[0m"); 137Console.WriteLine("\u001b[38;5;100This text is a Xterm text color using unfinished escape sequence (m here to finish the sequence late).\u001b[0m"); 138Console.WriteLine("\u001b[38;5;100This text is a Xterm text color using unfinished escape sequence.\u001b[0m"); 140Console.WriteLine(); 141Console.WriteLine("A link in escape sequence: \u001b]8;;https://example.com\u001b\\The link text\u001b]8;;\u001b\\"); 142Console.WriteLine("A link with formatted link text in escape sequnce: \u001b]8;;https://example.com\u001b\\The \u001b[38;5;100mlink\u001b[0m formatted text\u001b]8;;\u001b\\"); 144Console.WriteLine(); 145Console.WriteLine("HTML:"); 146Console.WriteLine("<b>BOLD!</b>"); 147Console.WriteLine("<script>alert('Hello, World!')</script>"); 148Console.WriteLine("<span style=\"color: #ff0000; background-color: #00ff00; font-weight: bold; text-decoration: underline;\">This text is red with a green background, bold, and underlined using HTML.</span>"); 150Console.WriteLine(); 151Console.WriteLine("Long continious !!! content:"); 152Console.WriteLine(new string('!', 1000)); 153Console.WriteLine(); 154Console.WriteLine("Long continious letter content:"); 157Console.Write(new string(i % 2 == 0 ? 'a' : 'b', 50)); 159Console.WriteLine(); 160Console.WriteLine(); 161Console.WriteLine("Long world content:"); 166Console.Write(" "); 168Console.Write(new string(i % 2 == 0 ? 'a' : 'b', 50)); 170Console.WriteLine();
Program.cs (3)
52Console.Error.WriteLine($"{i} Error"); 56Console.Out.WriteLine($"{i} Out"); 73Console.Out.WriteLine($"{i} Out. Payload: {payload}");
SuperFileCheck (50)
Program.cs (50)
497Console.ForegroundColor = ConsoleColor.Red; 498Console.Error.WriteLine("Expected C# file."); 499Console.ResetColor(); 507Console.ForegroundColor = ConsoleColor.Red; 508Console.Error.WriteLine($"Duplicate method name found: {methodName}"); 509Console.ResetColor(); 517Console.ForegroundColor = ConsoleColor.Red; 518Console.Error.WriteLine($"'{methodName}' is not marked with attribute 'MethodImpl(MethodImplOptions.NoInlining)'."); 519Console.ResetColor(); 528Console.ForegroundColor = ConsoleColor.Red; 529Console.Error.WriteLine("No methods were found. Check if any method bodies are using one or more of the following FileCheck prefixes:"); 532Console.Error.WriteLine($" {prefix}"); 534Console.ResetColor(); 542Console.ForegroundColor = ConsoleColor.Red; 543Console.Error.WriteLine($"{CommandLineInputFile} is required."); 544Console.ResetColor(); 552Console.Write(Environment.NewLine); 553Console.WriteLine("USAGE: SuperFileCheck [options] <check-file>"); 554Console.WriteLine("USAGE: SuperFileCheck <super-option> <check-file> [options]"); 555Console.Write(Environment.NewLine); 556Console.WriteLine("SUPER OPTIONS:"); 557Console.Write(Environment.NewLine); 558Console.WriteLine($" --csharp - A {CommandLineInputFile} is required."); 559Console.WriteLine($" <check-file> must be a C# source file."); 560Console.WriteLine($" Methods must not have duplicate names."); 561Console.WriteLine($" Methods must be marked as not inlining."); 562Console.WriteLine($" One or more methods are required."); 563Console.WriteLine($" Prefixes are determined by {CommandLineCheckPrefixes}."); 564Console.WriteLine($" --csharp-list-method-names - Print a space-delimited list of method names to be"); 565Console.WriteLine($" supplied to environment variable DOTNET_JitDisasm."); 566Console.WriteLine($" <check-file> must be a C# source file."); 567Console.WriteLine($" Methods must not have duplicate names."); 568Console.WriteLine($" Methods must be marked as not inlining."); 569Console.WriteLine($" Prints nothing if no methods are found."); 570Console.WriteLine($" Prefixes are determined by {CommandLineCheckPrefixes}."); 660Console.Write(String.Join(' ', methodDeclInfos.Select(x => x.FullyQualifiedName))); 665Console.ForegroundColor = ConsoleColor.Red; 666Console.WriteLine(ex.Message); 667Console.ResetColor(); 740Console.Write(x.Result.StandardOutput); 741Console.ForegroundColor = ConsoleColor.Red; 742Console.Error.Write(x.Result.StandardError); 743Console.ResetColor(); 756Console.ForegroundColor = ConsoleColor.Red; 757Console.WriteLine(ex.Message); 758Console.ResetColor(); 765Console.Write(result.StandardOutput); 772Console.ForegroundColor = ConsoleColor.Red; 773Console.Error.Write(result.StandardError); 774Console.ResetColor();
System.CommandLine (12)
ConsoleHelpers.cs (3)
21&& !Console.IsOutputRedirected; 27Console.ForegroundColor = ConsoleColor.Red; 35Console.ResetColor();
Help\HelpAction.cs (3)
16/// <value>The maximum width in characters after which help output is wrapped. The default is <see cref="Console.WindowWidth"/>.</value> 25_maxWidth = Console.IsOutputRedirected ? int.MaxValue : Console.WindowWidth;
Invocation\ProcessTerminationHandler.cs (2)
45Console.CancelKeyPress += OnCancelKeyPress; 60Console.CancelKeyPress -= OnCancelKeyPress;
InvocationConfiguration.cs (4)
30/// <value>The default is set to <see cref="Console.Out"/>.</value> 38get => _output ??= Console.Out; 45/// <value>The default is set to <see cref="Console.Error"/>.</value> 51get => _error ??= Console.Error;
System.Console (38)
src\runtime\src\libraries\Common\src\System\Console\ConsoleUtils.cs (1)
28bool enabled = GetColorOverrideFromEnvironment() ?? !Console.IsOutputRedirected;
System\ConsolePal.Unix.cs (36)
49useReadLine: !Console.IsInputRedirected); 94encoding: Console.InputEncoding 109if (Console.IsInputRedirected) 117encoding: Console.InputEncoding, 119bufferSize: Console.ReadBufferSize, 132if (Console.IsInputRedirected) 147if (Console.IsInputRedirected) 155if (!Console.IsInputRedirected) 164private static ConsoleColor s_trackedForegroundColor = Console.UnknownColor; 165private static ConsoleColor s_trackedBackgroundColor = Console.UnknownColor; 181lock (Console.Out) // synchronize with other writers 183s_trackedForegroundColor = Console.UnknownColor; 184s_trackedBackgroundColor = Console.UnknownColor; 204if (Console.IsOutputRedirected) 218if (!Console.IsOutputRedirected) 226if (!Console.IsOutputRedirected) 234if (Console.IsOutputRedirected) 242lock (Console.Out) 361lock (Console.Out) 401if (!Console.IsOutputRedirected) 412if (Console.IsInputRedirected || Console.IsOutputRedirected) 441Debug.Assert(!Console.IsInputRedirected); 446lock (Console.Out) 660lock (Console.Out) 759if (((int)value & ~0xF) != 0 && value != Console.UnknownColor) 764lock (Console.Out) 770if (s_trackedForegroundColor != Console.UnknownColor) 775if (s_trackedBackgroundColor != Console.UnknownColor) 887lock (Console.Out) // ensure that writing the ANSI string and setting initialized to true are done atomically 900s_terminalHandle = !Console.IsOutputRedirected ? OpenStandardOutputHandle() : 901!Console.IsInputRedirected ? OpenStandardInputHandle() : 913if (!Console.IsInputRedirected) 961lock (Console.Out) // synchronize with other writers 971lock (Console.Out) // synchronize with other writers 1034lock (Console.Out)
System\IO\StdInReader.cs (1)
37Debug.Assert(!Console.IsInputRedirected); // stdin is a terminal.
System.Diagnostics.Process (9)
Microsoft\Win32\SafeHandles\SafeProcessHandle.cs (3)
198childInputHandle ??= nullDeviceHandle ?? (ProcessUtils.PlatformSupportsConsole ? Console.OpenStandardInputHandle() : null); 199childOutputHandle ??= nullDeviceHandle ?? (ProcessUtils.PlatformSupportsConsole ? Console.OpenStandardOutputHandle() : null); 200childErrorHandle ??= nullDeviceHandle ?? (ProcessUtils.PlatformSupportsConsole ? Console.OpenStandardErrorHandle() : null);
System\Diagnostics\Process.cs (3)
1278childInputHandle ??= Console.OpenStandardInputHandle(); 1279childOutputHandle ??= Console.OpenStandardOutputHandle(); 1280childErrorHandle ??= Console.OpenStandardErrorHandle();
System\Diagnostics\ProcessStartInfo.cs (3)
158/// or <see cref="System.Console.OpenStandardInputHandle"/> to inherit the parent's standard input 184/// or <see cref="System.Console.OpenStandardOutputHandle"/> to inherit the parent's standard output 210/// or <see cref="System.Console.OpenStandardErrorHandle"/> to inherit the parent's standard error
System.Diagnostics.TextWriterTraceListener (4)
System\Diagnostics\ConsoleTraceListener.cs (3)
9: base(Console.Out) 14: base(useErrorStream ? Console.Error : Console.Out)
System\Diagnostics\TextWriterTraceListener.cs (1)
12/// such as <see cref='System.Console.Out'/> or <see cref='System.IO.FileStream'/>.</para>
System.ServiceProcess.ServiceController (1)
System\ServiceProcess\ServiceBase.cs (1)
620Console.WriteLine(SR.CantStartFromCommandLine);
TestProject.AppHost (2)
Program.cs (1)
10var s = Console.ReadLine();
TestProgram.cs (1)
202await Console.Out.WriteLineAsync("$ENDPOINTS: " + JsonSerializer.Serialize(root, JsonSerializerOptions.Default));
TestProject.WorkerA (1)
Worker.cs (1)
26System.Console.WriteLine($"Worker A: processing item {item++}...");
tlens (51)
src\runtime\src\tools\illink\external\Mono.Options\Options.cs (2)
1699: this(suite, Console.Out, Console.Error, localizer)
TLens.Analyzers\Analyzer.cs (4)
55Console.WriteLine(str); 56Console.WriteLine(header); 57Console.WriteLine(str); 58Console.WriteLine();
TLens.Analyzers\DuplicatedCodeAnalyzer.cs (3)
57Console.WriteLine($"String value \"{entry.Key}\""); 59Console.WriteLine($"\tMethod '{m.ToDisplay()}'"); 60Console.WriteLine();
TLens.Analyzers\InterfaceDispatchAnalyzer.cs (3)
21Console.WriteLine($"Interface {item.Key.FullName} is implemented {GetImplementationCount(item.Key)} times and called only at"); 25Console.WriteLine($"\t{location.ToDisplay()}"); 28Console.WriteLine();
TLens.Analyzers\InterfaceTypeCheckAnalyzers.cs (3)
20Console.WriteLine($"Unused interface type '{iface.FullName}' is implemented by"); 23Console.WriteLine($"\t{type.FullName}"); 26Console.WriteLine();
TLens.Analyzers\InverterCtorsChainAnalyzer.cs (1)
59Console.WriteLine($"Constructor '{entry.Item1.ToDisplay()}' calls possibly unnecessary initialization in '{entry.Item2.ToDisplay(showSize: true)}'");
TLens.Analyzers\LargeStaticArraysAnalyzer.cs (1)
47Console.WriteLine($"{entry.Item1} bytes large array is initialized in {entry.Item2}");
TLens.Analyzers\LargeStaticCtorAnalyzer.cs (1)
33Console.WriteLine(m.ToDisplay(showSize: true));
TLens.Analyzers\LargeStringsAnalyzer.cs (1)
47Console.WriteLine($"Method '{entry.Item2.ToDisplay()}' loads '{entry.Item1}' characters long string");
TLens.Analyzers\LimitedMethodCalls.cs (3)
59Console.WriteLine($"Method {entry.Key.ToDisplay(showSize: true)} is used only at"); 62Console.WriteLine($"\t{values.ToDisplay()}"); 65Console.WriteLine();
TLens.Analyzers\RedundantFieldInitializationAnalyzer.cs (3)
130Console.WriteLine($"Constructor '{entry.Key.ToDisplay()} initializes with default value fields"); 132Console.WriteLine($"\tField {field.FullName}"); 134Console.WriteLine();
TLens.Analyzers\TypeInstatiationAnalyzer.cs (3)
72Console.WriteLine($"Type '{entry.Key.FullName}' [size: {entry.Key.GetEstimatedSize()}] is instantiated only at"); 75Console.WriteLine($"\t{values.ToDisplay()}"); 78Console.WriteLine();
TLens.Analyzers\UnnecessaryFieldsAssignmentAnalyzer.cs (6)
97Console.WriteLine($"Field '{entry.Key.FullName}' is never read but has value assigned"); 101Console.WriteLine($"\t{loc.ToDisplay()}"); 104Console.WriteLine(); 118Console.WriteLine($"Field '{entry.Key.FullName}' is never read but has value assigned"); 122Console.WriteLine($"\t{loc.ToDisplay()}"); 125Console.WriteLine();
TLens.Analyzers\UnusedParametersAnalyzer.cs (1)
80Console.WriteLine($"Method '{method.ToDisplay()}' has unused parameter '{method.Parameters[entry.Item2].Name}'");
TLens.Analyzers\UserOperatorCalledForNullCheckAnalyzer.cs (1)
70Console.WriteLine($"User operator '{e.Key.ToDisplay()}' was called {e.Value.Redundant} [{e.Value.Ratio:0%}] times with null values");
TLens\AssemlyReferenceResolver.cs (1)
52Console.WriteLine($"The file for assembly reference '{name.Name}' could not be located.");
TLens\Driver.cs (13)
33Console.WriteLine($"Error: Lens name '{l}' does not exist."); 41Console.WriteLine($"Error: Directory '{l}' does not exist."); 64Console.WriteLine(e.Message); 65Console.WriteLine("Try `tlens --help' for more information."); 77Console.WriteLine("Error: No input files were specified."); 113Console.WriteLine("Trimming Lens"); 114Console.WriteLine(" tlens [options] input-files"); 115Console.WriteLine(); 116Console.WriteLine("Options:"); 118options.WriteOptionDescriptions(Console.Out); 120Console.WriteLine("Lenses Names:"); 124Console.WriteLine($" {lense.Name,-27}{lense.Description}"); 135Console.WriteLine($"File {file} could not be found.");
TLens\Runner.cs (1)
41Console.WriteLine();
vbc (8)
src\roslyn\src\Compilers\Shared\BuildClient.cs (1)
124textWriter = textWriter ?? Console.Out;
src\roslyn\src\Compilers\Shared\ConsoleUtil.cs (6)
17/// This will update the <see cref="Console.Out"/> value to have UTF-8 encoding for the duration of the 22Encoding savedEncoding = Console.OutputEncoding; 25Console.OutputEncoding = s_utf8Encoding; 26return func(Console.Out); 32Console.OutputEncoding = savedEncoding; 45if (textWriter != Console.Out)
src\roslyn\src\Compilers\VisualBasic\vbc\Program.cs (1)
26Console.WriteLine(e.Message);
VBCSCompiler (12)
src\roslyn\src\Compilers\Server\VBCSCompiler\BuildServerController.cs (5)
37Console.CancelKeyPress += (sender, e) => { cancellationTokenSource.Cancel(); }; 183Console.Error.WriteLine("Cannot determine cache path."); 188Console.WriteLine(result); 200Console.Error.WriteLine("Cannot determine cache path."); 205Console.WriteLine(stats.FormatSummary(cachePath, verbosity));
src\roslyn\src\Compilers\Shared\BuildClient.cs (1)
124textWriter = textWriter ?? Console.Out;
src\roslyn\src\Compilers\Shared\ConsoleUtil.cs (6)
17/// This will update the <see cref="Console.Out"/> value to have UTF-8 encoding for the duration of the 22Encoding savedEncoding = Console.OutputEncoding; 25Console.OutputEncoding = s_utf8Encoding; 26return func(Console.Out); 32Console.OutputEncoding = savedEncoding; 45if (textWriter != Console.Out)
vstest.console (6)
Internal\ConsoleHelper.cs (4)
11public int CursorLeft => Console.CursorLeft; 14public int CursorTop => Console.CursorTop; 17public int WindowWidth => Console.WindowWidth; 22Console.SetCursorPosition(left, top);
Internal\ConsoleLogger.cs (1)
177if (_progressIndicator == null && !Console.IsOutputRedirected && EnableProgress)
Program.cs (1)
28Console.OutputEncoding = Encoding.UTF8;
vstest.console.arm64 (6)
src\vstest\src\vstest.console\Internal\ConsoleHelper.cs (4)
11public int CursorLeft => Console.CursorLeft; 14public int CursorTop => Console.CursorTop; 17public int WindowWidth => Console.WindowWidth; 22Console.SetCursorPosition(left, top);
src\vstest\src\vstest.console\Internal\ConsoleLogger.cs (1)
177if (_progressIndicator == null && !Console.IsOutputRedirected && EnableProgress)
src\vstest\src\vstest.console\Program.cs (1)
28Console.OutputEncoding = Encoding.UTF8;
WaitForSandbox.DbSetup (1)
Program.cs (1)
15Console.WriteLine("Database created!");