189 references to Error
aspire (4)
Diagnostics\StartupErrorWriter.cs (1)
43Out = new AnsiConsoleOutput(Console.Error)
Program.cs (2)
225builder.AddProvider(new SpectreConsoleLoggerProvider(Console.Error)); 303BuildAnsiConsole(s, Console.Error)));
Utils\AspireAnsiConsoleOutput.cs (1)
103return writer == Console.Error;
Aspire.Cli.Tests (2)
CliSmokeTests.cs (2)
40var oldErrorOutput = Console.Error; 76var oldErrorOutput = Console.Error;
Aspire.Hosting (1)
Dcp\DcpHost.cs (1)
262OnErrorData = Console.Error.Write,
Aspire.Hosting.Foundry (1)
HostedAgent\HostedAgentBuilderExtension.cs (1)
215Console.Error.Write($"Error processing agent response: {ex}");
aspire-managed (22)
NuGet\Commands\LayoutCommand.cs (6)
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()))}"); 235Console.Error.WriteLine($"Error: {ex.Message}"); 238Console.Error.WriteLine(ex.StackTrace);
NuGet\Commands\RestoreCommand.cs (6)
106Console.Error.WriteLine("Error: Cannot specify both --nuget-config and --source. Use one or the other."); 121Console.Error.WriteLine($"Error: Package argument '{pkgArg}' must be in format 'PackageId,Version'"); 212Console.Error.WriteLine("Error: Restore returned no results"); 220Console.Error.WriteLine($"Error: Restore failed: {errors}"); 231Console.Error.WriteLine($"Error: {ex.Message}"); 234Console.Error.WriteLine(ex.ToString());
NuGet\Commands\SearchCommand.cs (8)
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.");
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 (7)
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}");
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 (2)
CommandFactory\CommandResolution\ProjectToolsCommandResolver.cs (1)
410var savedErrWriter = Console.Error;
Commands\Pack\PackCommand.cs (1)
98Console.Error.WriteLine(CliStrings.PackCmd_OneNuspecAllowed);
dotnet-dev-certs (3)
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (1)
32return new AnsiConsole(Console.Error, useConsoleColor);
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
65public TextWriter Error { get; set; } = Console.Error;
src\aspnetcore\src\Tools\Shared\CommandLine\PhysicalConsole.cs (1)
26public TextWriter Error => Console.Error;
dotnet-format (1)
Logging\SimpleConsoleLogger.cs (1)
72Console.Error.WriteLine(message);
dotnet-Microsoft.XmlSerializer.Generator (5)
Sgen.cs (5)
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")))); 257Console.Error.WriteLine(FormatMessage(parsableerrors, false, SR.Format(SR.ErrorDetails, SR.Format(SR.ErrLoadType, typeName, assemblyName)))); 375Console.Error.WriteLine(FormatMessage(parsableerrors: false, warning: false, message: SR.GenerateSerializerNotFound)); 527Console.Error.WriteLine(FormatMessage(parsableerrors, false, e.Message));
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\aspnetcore\src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (1)
32return new AnsiConsole(Console.Error, useConsoleColor);
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
65public TextWriter Error { get; set; } = Console.Error;
src\aspnetcore\src\Tools\Shared\CommandLine\PhysicalConsole.cs (1)
26public TextWriter Error => Console.Error;
dotnet-user-secrets (3)
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\AnsiConsole.cs (1)
32return new AnsiConsole(Console.Error, useConsoleColor);
src\aspnetcore\src\Shared\CommandLineUtils\CommandLine\CommandLineApplication.cs (1)
65public TextWriter Error { get; set; } = Console.Error;
src\aspnetcore\src\Tools\Shared\CommandLine\PhysicalConsole.cs (1)
26public TextWriter Error => Console.Error;
dotnet-watch (2)
Program.cs (2)
66Console.Error.WriteLine("Unexpected error:"); 67Console.Error.WriteLine(ex.ToString());
GenerateDocumentationAndConfigFiles (16)
Program.cs (16)
277await Console.Error.WriteLineAsync($"'{path}' does not exist").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);
ilasm (7)
IlasmRootCommand.cs (1)
178Console.Error.WriteLine("Error: " + e.Message);
Program.cs (6)
44Console.Error.WriteLine("Error: No input file specified"); 53Console.Error.WriteLine($"Error: Input file not found: {file}"); 235Console.Error.WriteLine($"Error: {diagnostic.Location}: {diagnostic.Message}"); 246Console.Error.WriteLine("***** FAILURE *****"); 252Console.Error.WriteLine("***** FAILURE *****"); 276Console.Error.WriteLine($"Error: {ex.Message}");
ILAssembler (2)
gen\CILLexer.cs (1)
143 : this(input, Console.Out, Console.Error) { }
gen\CILParser.cs (1)
290 public CILParser(ITokenStream input) : this(input, Console.Out, Console.Error) { }
ILCompiler.ReadyToRun (7)
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)
1394Console.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)
1394Console.Error.WriteLine($"Failed devirtualization with unexpected unknown failure while compiling {MethodBeingCompiled} with decl {decl} targeting type {objType}");
illink (3)
Microsoft.Build (5)
BackEnd\Client\MSBuildClient.cs (1)
597Console.Error.Write(consoleWrite.Text);
BackEnd\Node\OutOfProcServerNode.cs (1)
434var oldErr = Console.Error;
Logging\BinaryLogger\BinaryLogger.cs (1)
573Console.Error.WriteLine(message);
Logging\SimpleErrorLogger.cs (2)
73Console.Error.WriteLine(AnsiCodes.Colorize(message, color)); 77Console.Error.WriteLine(message);
Microsoft.Build.Framework (1)
DebugUtils.cs (1)
39Console.Error.WriteLine("MSBuild debug path initialization failed: " + ex);
Microsoft.CodeAnalysis.Scripting (1)
Hosting\CommandLine\ConsoleIO.cs (1)
15public static readonly ConsoleIO Default = new ConsoleIO(Console.Out, Console.Error, Console.In);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
Program.cs (1)
20var logger = new BuildHostLogger(Console.Error);
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 (2)
Logging\ConsoleLog.cs (2)
20Console.Error.WriteLine(message); 27Console.Error.WriteLine($"{code}: {message}");
Microsoft.DotNet.Arcade.Sdk (1)
src\InstallDotNetCore.cs (1)
178Console.Error.WriteLine(e.Data);
Microsoft.DotNet.Cli.Utils (4)
AnsiConsole.cs (1)
30return new AnsiConsole(Console.Error);
BuiltInCommand.cs (1)
131return Console.Error;
MSBuildForwardingAppWithoutLogging.cs (2)
166Console.Error.Write("Unhandled exception: "); 167Console.Error.WriteLine(exception.ToString());
Microsoft.DotNet.HotReload.Utils.Generator (2)
BaselineProject.cs (2)
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);
Microsoft.DotNet.HotReload.Utils.Generator.Frontend (1)
Frontend.cs (1)
28Console.Error.WriteLine ($"Error: {exn.Message}");
Microsoft.DotNet.HotReload.Watch (1)
UI\PhysicalConsole.cs (1)
126public TextWriter Error => Console.Error;
Microsoft.DotNet.MacOsPkg.Cli (1)
Program.cs (1)
26Console.Error.WriteLine("This tool is only supported on macOS.");
Microsoft.DotNet.MacOsPkg.Core (3)
MacOsPkgCore.cs (3)
36Console.Error.WriteLine(e); 81Console.Error.WriteLine(e); 121Console.Error.WriteLine(e);
Microsoft.DotNet.VersionTools.Cli (1)
ConsoleLogger.cs (1)
19Console.Error.WriteLine(String.Format(message, values));
Microsoft.Extensions.DotNetDeltaApplier (1)
src\sdk\src\Dotnet.Watch\HotReloadAgent.Host\StartupHook.cs (1)
172Console.Error.WriteLine($"{prefix} {message}");
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.ServiceDiscovery.Dns.Tests.Fuzzing (2)
Program.cs (2)
21Console.Error.WriteLine($""" 42Console.Error.WriteLine($"Unknown fuzzer: {arg}");
Microsoft.ML.Core (7)
CommandLine\CmdParser.cs (3)
223return ParseArguments(env, settings, destination, Console.Error.WriteLine); 287return ParseArguments(env, settings, destination, Console.Error.WriteLine, out helpText); 425_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');
Microsoft.NET.HostModel (1)
Bundle\Trace.cs (1)
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.TestPlatform.CoreUtilities (1)
Output\ConsoleOutput.cs (1)
26_standardError = Console.Error;
MSBuild (4)
MSBuildClientApp.cs (1)
82Console.Error.WriteLine(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("MSBuildServerUnavailable", detail));
XMake.cs (3)
258Console.Error.WriteLine("MSBuild could not start: " + ex); 1158Console.Error.WriteLine(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("BuildFailedWithPropertiesItemsOrTargetResultsRequested")); 1772Console.Error.WriteLine(message);
NuGet.Build.Tasks.Console (1)
Program.cs (1)
64if (!TryParseArguments(args, () => System.Console.OpenStandardInput(), System.Console.Error, out (Dictionary<string, string> Options, FileInfo MSBuildExeFilePath, string EntryProjectFilePath, Dictionary<string, string> MSBuildGlobalProperties) arguments))
NuGet.CommandLine.XPlat (3)
ListPackage\ListPackageConsoleRenderer.cs (1)
26: this(Console.Out, Console.Error)
src\nuget-client\artifacts\.packages\microsoft.extensions.commandlineutils.sources\3.0.0-preview6.19253.5\contentFiles\cs\netstandard1.0\shared\CommandLine\AnsiConsole.cs (1)
32return new AnsiConsole(Console.Error, useConsoleColor);
src\nuget-client\artifacts\.packages\microsoft.extensions.commandlineutils.sources\3.0.0-preview6.19253.5\contentFiles\cs\netstandard1.0\shared\CommandLine\CommandLineApplication.cs (1)
50public TextWriter Error { get; set; } = Console.Error;
rzc (3)
CommandLine\AnsiConsole.cs (1)
29return new AnsiConsole(Console.Error, useConsoleColor);
CommandLine\CommandLineApplication.cs (1)
59public TextWriter Error { get; set; } = Console.Error;
Program.cs (1)
54Console.Error.Write(error);
Stress.ApiService (1)
Program.cs (1)
52Console.Error.WriteLine($"{i} Error");
SuperFileCheck (8)
Program.cs (8)
498Console.Error.WriteLine("Expected C# file."); 508Console.Error.WriteLine($"Duplicate method name found: {methodName}"); 518Console.Error.WriteLine($"'{methodName}' is not marked with attribute 'MethodImpl(MethodImplOptions.NoInlining)'."); 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}"); 543Console.Error.WriteLine($"{CommandLineInputFile} is required."); 742Console.Error.Write(x.Result.StandardError); 773Console.Error.Write(result.StandardError);
System.CommandLine (2)
InvocationConfiguration.cs (2)
45/// <value>The default is set to <see cref="Console.Error"/>.</value> 51get => _error ??= Console.Error;
System.Diagnostics.TextWriterTraceListener (1)
System\Diagnostics\ConsoleTraceListener.cs (1)
14: base(useErrorStream ? Console.Error : Console.Out)
tlens (1)
src\runtime\src\tools\illink\external\Mono.Options\Options.cs (1)
1699: this(suite, Console.Out, Console.Error, localizer)
VBCSCompiler (2)
src\roslyn\src\Compilers\Server\VBCSCompiler\BuildServerController.cs (2)
183Console.Error.WriteLine("Cannot determine cache path."); 200Console.Error.WriteLine("Cannot determine cache path.");