176 references to Error
Aspire.Hosting (1)
Dcp\DcpHostService.cs (1)
201OnErrorData = Console.Error.Write,
BoundTreeGenerator (2)
Program.cs (2)
27Console.Error.WriteLine("Usage: \"{0} <language> <input> <output>\", where <language> is \"VB\" or \"CSharp\"", Path.GetFileNameWithoutExtension(args[0])); 45Console.Error.WriteLine("Language must be \"VB\" or \"CSharp\"");
BuildBoss (4)
Program.cs (4)
50Console.Error.WriteLine($"Invalid configuration: '{configuration}'"); 60Console.Error.WriteLine(ex.Message); 61options.WriteOptionDescriptions(Console.Error); 72Console.Error.WriteLine("Unable to find repository root");
ClientSample (2)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (1)
32return new AnsiConsole(Console.Error, useConsoleColor);
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
65public TextWriter Error { get; set; } = Console.Error;
CodeGenerator (5)
Program.cs (5)
12Console.Error.WriteLine("Missing path to HttpHeaders.Generated.cs"); 17Console.Error.WriteLine("Missing path to HttpProtocol.Generated.cs"); 22Console.Error.WriteLine("Missing path to HttpUtilities.Generated.cs"); 27Console.Error.WriteLine("Missing path to TransportMultiplexedConnection.Generated.cs"); 32Console.Error.WriteLine("Missing path to TransportConnection.Generated.cs");
CodeStyleConfigFileGenerator (1)
Program.cs (1)
33Console.Error.WriteLine($"Excepted {ExpectedArguments} arguments, found {args.Length}: {string.Join(';', args)}");
csi (1)
Csi.cs (1)
48Console.Error.WriteLine(ex.ToString());
DnnAnalyzer (1)
DnnAnalyzer.cs (1)
18Console.Error.WriteLine("Usage: dotnet DnnAnalyzer.dll <model_location>");
dotnet-dev-certs (3)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (1)
32return new AnsiConsole(Console.Error, useConsoleColor);
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
65public TextWriter Error { get; set; } = Console.Error;
src\Tools\Shared\CommandLine\PhysicalConsole.cs (1)
26public TextWriter Error => Console.Error;
dotnet-getdocument (3)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (1)
32return new AnsiConsole(Console.Error, useConsoleColor);
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
65public TextWriter Error { get; set; } = Console.Error;
src\Tools\Shared\CommandLine\PhysicalConsole.cs (1)
26public TextWriter Error => Console.Error;
dotnet-openapi (4)
Program.cs (1)
47Console.Error.WriteLine(error);
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (1)
32return new AnsiConsole(Console.Error, useConsoleColor);
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
65public TextWriter Error { get; set; } = Console.Error;
src\Tools\Shared\CommandLine\PhysicalConsole.cs (1)
26public TextWriter Error => Console.Error;
dotnet-sql-cache (3)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (1)
32return new AnsiConsole(Console.Error, useConsoleColor);
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
65public TextWriter Error { get; set; } = Console.Error;
src\Tools\Shared\CommandLine\PhysicalConsole.cs (1)
26public TextWriter Error => Console.Error;
dotnet-svcutil.xmlserializer (6)
Microsoft\Tools\ServiceModel\SvcUtil\ToolConsole.cs (6)
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();
dotnet-user-jwts (3)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (1)
32return new AnsiConsole(Console.Error, useConsoleColor);
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
65public TextWriter Error { get; set; } = Console.Error;
src\Tools\Shared\CommandLine\PhysicalConsole.cs (1)
26public TextWriter Error => Console.Error;
dotnet-user-secrets (3)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (1)
32return new AnsiConsole(Console.Error, useConsoleColor);
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
65public TextWriter Error { get; set; } = Console.Error;
src\Tools\Shared\CommandLine\PhysicalConsole.cs (1)
26public TextWriter Error => Console.Error;
GenerateRulesMissingDocumentation (4)
Program.cs (4)
19await Console.Error.WriteLineAsync($"Excepted {expectedArguments} arguments, found {args.Length}: {string.Join(';', args)}").ConfigureAwait(false); 25await Console.Error.WriteLineAsync($"Excepted the first argument to start with `{validateOnlyPrefix}`. found `{args[0]}`.").ConfigureAwait(false); 86await Console.Error.WriteLineAsync($"Missing entry in '{fileWithPath}'. Please add the below entry to this file to fix the build:").ConfigureAwait(false); 87await Console.Error.WriteLineAsync(line).ConfigureAwait(false);
GetDocument.Insider (3)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (1)
32return new AnsiConsole(Console.Error, useConsoleColor);
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
65public TextWriter Error { get; set; } = Console.Error;
src\Tools\Shared\CommandLine\PhysicalConsole.cs (1)
26public TextWriter Error => Console.Error;
HelixTestRunner (1)
ProcessUtil.cs (1)
212public static void PrintErrorMessage(string message) => Console.Error.WriteLine($"{DateTime.UtcNow.ToString("O", CultureInfo.InvariantCulture)} {message}");
IIS.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
67Console.Error.WriteLine("'{0}' failed, reason: '{1}'", o, message);
illink (3)
InProcessWebSite (8)
src\Servers\IIS\IIS\test\testassets\InProcessWebSite\Program.cs (7)
33Console.Error.WriteLine(new string('a', 30000)); 34Console.Error.Flush(); 40Console.Error.WriteLine($"Random number: {args[1]}"); 41Console.Error.Flush(); 47Console.Error.WriteLine(new string('a', 31000)); 48Console.Error.Flush(); 106Console.Error.WriteLine("TEST MESSAGE");
src\Servers\IIS\IIS\test\testassets\InProcessWebSite\Startup.cs (1)
124Console.Error.WriteLine("TEST MESSAGE");
InteractiveHost32 (1)
src\Interactive\HostProcess\InteractiveHostEntryPoint.cs (1)
63Console.Error.WriteLine(e);
InteractiveHost64 (1)
src\Interactive\HostProcess\InteractiveHostEntryPoint.cs (1)
63Console.Error.WriteLine(e);
IOperationGenerator (1)
Program.cs (1)
16Console.Error.WriteLine("Usage: \"{0} <input> <output>\"", Path.GetFileNameWithoutExtension(args[0]));
Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Tests (1)
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (1)
114Console.Error.WriteLine($"Test cleanup failed to delete '{Root}'");
Microsoft.AspNetCore.Components.Performance (1)
src\Shared\BenchmarkRunner\Program.cs (1)
67Console.Error.WriteLine("'{0}' failed, reason: '{1}'", o, message);
Microsoft.AspNetCore.Components.WebAssembly (1)
Services\DefaultWebAssemblyJSRuntime.cs (1)
106Console.Error.WriteLine($"Error deserializing root component operations: {ex}");
Microsoft.AspNetCore.ConcurrencyLimiter.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
67Console.Error.WriteLine("'{0}' failed, reason: '{1}'", o, message);
Microsoft.AspNetCore.Grpc.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
67Console.Error.WriteLine("'{0}' failed, reason: '{1}'", o, message);
Microsoft.AspNetCore.Http.Abstractions.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
67Console.Error.WriteLine("'{0}' failed, reason: '{1}'", o, message);
Microsoft.AspNetCore.Http.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
67Console.Error.WriteLine("'{0}' failed, reason: '{1}'", o, message);
Microsoft.AspNetCore.OpenApi.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
67Console.Error.WriteLine("'{0}' failed, reason: '{1}'", o, message);
Microsoft.AspNetCore.OutputCaching.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
67Console.Error.WriteLine("'{0}' failed, reason: '{1}'", o, message);
Microsoft.AspNetCore.RequestDecompression.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
67Console.Error.WriteLine("'{0}' failed, reason: '{1}'", o, message);
Microsoft.AspNetCore.ResponseCaching.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
67Console.Error.WriteLine("'{0}' failed, reason: '{1}'", o, message);
Microsoft.AspNetCore.ResponseCompression.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
67Console.Error.WriteLine("'{0}' failed, reason: '{1}'", o, message);
Microsoft.AspNetCore.Routing.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
67Console.Error.WriteLine("'{0}' failed, reason: '{1}'", o, message);
Microsoft.AspNetCore.Security.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
67Console.Error.WriteLine("'{0}' failed, reason: '{1}'", o, message);
Microsoft.AspNetCore.Server.HttpSys.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
67Console.Error.WriteLine("'{0}' failed, reason: '{1}'", o, message);
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
67Console.Error.WriteLine("'{0}' failed, reason: '{1}'", o, message);
Microsoft.AspNetCore.Shared.Tests (2)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (1)
32return new AnsiConsole(Console.Error, useConsoleColor);
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
65public TextWriter Error { get; set; } = Console.Error;
Microsoft.AspNetCore.SignalR.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
67Console.Error.WriteLine("'{0}' failed, reason: '{1}'", o, message);
Microsoft.AspNetCore.WebSockets.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
67Console.Error.WriteLine("'{0}' failed, reason: '{1}'", o, message);
Microsoft.AspNetCore.WebUtilities.Microbenchmarks (1)
src\Shared\BenchmarkRunner\Program.cs (1)
67Console.Error.WriteLine("'{0}' failed, reason: '{1}'", o, message);
Microsoft.Build (4)
BackEnd\Client\MSBuildClient.cs (1)
595Console.Error.Write(consoleWrite.Text);
BackEnd\Node\OutOfProcServerNode.cs (1)
408var oldErr = Console.Error;
Logging\SimpleErrorLogger.cs (2)
73Console.Error.WriteLine(AnsiCodes.Colorize(message, color)); 77Console.Error.WriteLine(message);
Microsoft.CodeAnalysis.InteractiveHost (12)
Interactive\Core\InteractiveHost.Service.cs (12)
328Console.Error.WriteLine(string.Format(InteractiveHostResources.Cannot_resolve_reference_0, reference)); 393Console.Error.WriteLine(e.InnerException.Message); 397Console.Error.Write(GetServiceState().ReplServiceProvider.ObjectFormatter.FormatException(e)); 480Console.Error.WriteLine("Unexpected error:"); 481Console.Error.WriteLine(e); 532var writer = (error.Severity == DiagnosticSeverity.Error) ? Console.Error : Console.Out; 633Console.Error.WriteLine(InteractiveHostResources.Specified_file_not_found_colon_0, path); 637Console.Error.WriteLine(InteractiveHostResources.Specified_file_not_found); 642DisplaySearchPaths(Console.Error, attempts); 669DisplayInteractiveErrors(diagnostics, Console.Error); 715Console.Error.WriteLine(e.Message); 817Console.Error.WriteLine("in the loop");
Microsoft.CodeAnalysis.Scripting (1)
Hosting\CommandLine\ConsoleIO.cs (1)
15public static readonly ConsoleIO Default = new ConsoleIO(Console.Out, Console.Error, Console.In);
Microsoft.CodeAnalysis.Test.Utilities (1)
Platform\Desktop\DesktopRuntimeEnvironment.cs (1)
417TextWriter originalError = Console.Error;
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
Program.cs (1)
35var logger = new BuildHostLogger(Console.Error);
Microsoft.DotNet.Arcade.Sdk (1)
src\InstallDotNetCore.cs (1)
167Console.Error.WriteLine(e.Data);
Microsoft.DotNet.Open.Api.Tools.Tests (1)
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (1)
114Console.Error.WriteLine($"Test cleanup failed to delete '{Root}'");
Microsoft.DotNet.RemoteExecutor (1)
Program.cs (1)
25Console.Error.WriteLine("Usage: {0} assemblyName typeName methodName exceptionFile [additionalArgs]", typeof(Program).GetTypeInfo().Assembly.GetName().Name);
Microsoft.DotNet.SignCheckLibrary (1)
Logging\ConsoleLogger.cs (1)
41Console.Error.WriteLine(message);
Microsoft.DotNet.SwaggerGenerator.CmdLine (3)
Program.cs (3)
23Console.Error.WriteLine("fatal: " + message); 90Console.Error.WriteLine($"error: In {error.Pointer} '{error.Message}'"); 93Console.Error.WriteLine("OpenApi Document parsing resulted in errors. Output may be compromised.");
Microsoft.DotNet.Tar (3)
Program.cs (3)
18Console.Error.WriteLine("Usage: <src path> <dst path>"); 41Console.Error.WriteLine($"File or directory must exist: '{srcPath}'"); 47Console.Error.Write(e.Message);
Microsoft.DotNet.VersionTools.Cli (1)
ConsoleLogger.cs (1)
19Console.Error.WriteLine(String.Format(message, values));
Microsoft.Extensions.ApiDescription.Client.Tests (1)
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (1)
114Console.Error.WriteLine($"Test cleanup failed to delete '{Root}'");
Microsoft.Extensions.ApiDescription.Tool.Tests (1)
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (1)
114Console.Error.WriteLine($"Test cleanup failed to delete '{Root}'");
Microsoft.Extensions.Logging.Console (2)
AnsiLogConsole.cs (1)
17_textWriter = stdErr ? System.Console.Error : System.Console.Out;
AnsiParsingLogConsole.cs (1)
21_textWriter = stdErr ? System.Console.Error : System.Console.Out;
Microsoft.Extensions.ObjectPool.Microbenchmark (1)
src\Shared\BenchmarkRunner\Program.cs (1)
67Console.Error.WriteLine("'{0}' failed, reason: '{1}'", o, message);
Microsoft.Extensions.SecretManager.Tools.Tests (1)
src\Tools\Shared\TestHelpers\TemporaryDirectory.cs (1)
114Console.Error.WriteLine($"Test cleanup failed to delete '{Root}'");
Microsoft.ML.Core (7)
CommandLine\CmdParser.cs (3)
222return ParseArguments(env, settings, destination, Console.Error.WriteLine); 286return ParseArguments(env, settings, destination, Console.Error.WriteLine, out helpText); 424_reporter = Console.Error.WriteLine;
ComponentModel\AssemblyLoadingUtils.cs (1)
57Console.Error.WriteLine("Warning: Could not load '{0}': {1}", path, ex.Message);
Environment\ConsoleEnvironment.cs (3)
51_colorErr = outWriter == Console.Error; 309if (isError && _err != _out && (_out != Console.Out || _err != Console.Error)) 374_consoleWriter = new ConsoleWriter(this, outWriter ?? Console.Out, errWriter ?? Console.Error, testWriter);
Microsoft.ML.Maml (3)
MAML.cs (3)
227Console.Error.WriteLine("Progress tracking terminated with an exception"); 228PrintExceptionData(Console.Error, ex, false); 229Console.Error.WriteLine("Progress tracking is terminated.");
Microsoft.ML.ResultProcessor (12)
ResultProcessor.cs (12)
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);
Microsoft.ML.StandardTrainers (3)
Optimizer\OptimizationMonitor.cs (3)
85Console.Error.Write(_checkingMessage); 86Console.Error.Flush(); 91Console.Error.Write('\b');
MSBuild (2)
XMake.cs (2)
1119Console.Error.WriteLine(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("BuildFailedWithPropertiesItemsOrTargetResultsRequested")); 1727Console.Error.WriteLine(message);
PrepareTests (3)
Program.cs (2)
33Console.Error.WriteLine("--source argument must be provided"); 39Console.Error.WriteLine("--destination argument must be provided");
TestDiscovery.cs (1)
121Console.Error.WriteLine($"Error: {e.Message}");
RemoteExecutorConsoleApp (1)
RemoteExecutorConsoleApp.cs (1)
22Console.Error.WriteLine("Usage: {0} assemblyName typeName methodName exceptionFile [additionalArgs]", typeof(Program).GetTypeInfo().Assembly.GetName().Name);
Stress.ApiService (1)
Program.cs (1)
38Console.Error.WriteLine($"{i} Error");
Swaggatherer (2)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (1)
32return new AnsiConsole(Console.Error, useConsoleColor);
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
65public TextWriter Error { get; set; } = Console.Error;
System.Diagnostics.TextWriterTraceListener (1)
System\Diagnostics\ConsoleTraceListener.cs (1)
14: base(useErrorStream ? Console.Error : Console.Out)
Templates.Blazor.Tests (2)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (1)
32return new AnsiConsole(Console.Error, useConsoleColor);
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
65public TextWriter Error { get; set; } = Console.Error;
Templates.Blazor.WebAssembly.Auth.Tests (2)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (1)
32return new AnsiConsole(Console.Error, useConsoleColor);
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
65public TextWriter Error { get; set; } = Console.Error;
Templates.Blazor.WebAssembly.Tests (2)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (1)
32return new AnsiConsole(Console.Error, useConsoleColor);
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
65public TextWriter Error { get; set; } = Console.Error;
Templates.Mvc.Tests (2)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (1)
32return new AnsiConsole(Console.Error, useConsoleColor);
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
65public TextWriter Error { get; set; } = Console.Error;
Templates.Tests (2)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (1)
32return new AnsiConsole(Console.Error, useConsoleColor);
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
65public TextWriter Error { get; set; } = Console.Error;
TestDiscoveryWorker (2)
Program.cs (2)
82await Console.Error.WriteLineAsync($"Channel failed to write for '{assemblyFileName}'").ConfigureAwait(false); 103await Console.Error.WriteLineAsync(ex.ToString()).ConfigureAwait(false);
Wasm.Performance.ConsoleHost (2)
src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (1)
32return new AnsiConsole(Console.Error, useConsoleColor);
src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
65public TextWriter Error { get; set; } = Console.Error;
Wasm.Performance.Driver (2)
Program.cs (2)
33Console.Error.WriteLine("Usage Driver <stress-run-duration-seconds>"); 39Console.Error.WriteLine("Stress run duration must be a positive integer.");
WebSocketSample (3)
Program.cs (3)
15Console.Error.WriteLine("Usage: WebSocketSample <URL>"); 16Console.Error.WriteLine(""); 17Console.Error.WriteLine("To connect to an ASP.NET Connection Handler, use 'ws://example.com/path/to/hub' or 'wss://example.com/path/to/hub' (for HTTPS)");